# Question about threshold of pixel value and hiding the file name while saving 

**URL:** <https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719>\
**Category:** Support\
**Created:** [September 14, 2023, 3:51pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719 "2023-09-14T15:51:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jp\_jp\_jp](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jp\_jp\_jp](https://discourse.slicer.org/u/jp_jp_jp)\
**Post date:** [September 14, 2023, 3:51pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719/1 "2023-09-14T15:51:17Z")

</div>

Hi, I have a picture like this  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/a/6a6a9f41d384b02d22a346b4df2b21675eaa3797.jpeg)

1. From the view of the value of the pixel, there are some places that look white, and they should have a higher pixel value, so my question is how to set a threshold value so that those parts can be hidden.
2. Now I am using annotation screenshot to save as jpg, how to hide the white file name at left bottom, and is there any way to save high dpi pictures?
3. How to only show the green line in this figure, they are intersection lines

Thank you!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 14, 2023, 4:01pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719/2 "2023-09-14T16:01:27Z")

</div>

Under the volumes module, if you scroll down to the threshold tab, you can control what’s being displayed in the slice view.

I am not sure it is possible to volume name not to be displayed in the slice view. You might have to edit that after the capture.

---

<div class="post-metadata">

**Author:** ![jp\_jp\_jp](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jp\_jp\_jp](https://discourse.slicer.org/u/jp_jp_jp)\
**Post date:** [September 14, 2023, 4:06pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719/4 "2023-09-14T16:06:14Z")

</div>

Thanks! It can be hidden using a right click, configure slice view with annotanation…  
do you know how to only show the green line? Thanks!

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [September 14, 2023, 5:44pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719/5 "2023-09-14T17:44:23Z")

</div>

If you create a custom layout with only the red slice and green slice (no yellow slice in the layout), and then turn on slice intersections, only the green line should show up. Here is some example code from the script repository showing how to create and use a custom layout: [Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#customize-view-layout)

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [September 14, 2023, 7:37pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719/6 "2023-09-14T19:37:17Z")

</div>

> [@jp\_jp\_jp](#):
>
> Now I am using annotation screenshot to save as jpg, how to hide the white file name at left bottom, and is there any way to save high dpi pictures?

To hide the text, you can go to the DataProbe module and uncheck the active corners:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/6/6638ba219dfa1ac287a9fb03921247cee4ff3e4e.png)

---

<div class="post-metadata">

**Author:** ![jp\_jp\_jp](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jp\_jp\_jp](https://discourse.slicer.org/u/jp_jp_jp)\
**Post date:** [September 14, 2023, 9:54pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719/7 "2023-09-14T21:54:17Z")

</div>

Hi, is there a way to do the custom layout using GUI?

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [September 14, 2023, 10:16pm UTC](https://discourse.slicer.org/t/question-about-threshold-of-pixel-value-and-hiding-the-file-name-while-saving/31719/8 "2023-09-14T22:16:38Z")

</div>

I don’t believe so, but you could paste the below code (which is just a slightly modified version of the code from the repository) into the python interactor to achieve this.

```auto
customLayout = """
<layout type="horizontal" split="true">
  <item>
  <view class="vtkMRMLSliceNode" singletontag="Red">
    <property name="orientation" action="default">Axial</property>
    <property name="viewlabel" action="default">R</property>
    <property name="viewcolor" action="default">#F34A33</property>
  </view>
  </item>
<item>
  <view class=\"vtkMRMLSliceNode\" singletontag=\"Green\">
   <property name=\"orientation\" action=\"default\">Coronal</property>
   <property name=\"viewlabel\" action=\"default\">G</property>
   <property name=\"viewcolor\" action=\"default\">#6EB04B</property>
  </view>
</item>
</layout>
"""

# Built-in layout IDs are all below 100, so you can choose any large random number
# for your custom layout ID.
customLayoutId=511

layoutManager = slicer.app.layoutManager()
layoutManager.layoutLogic().GetLayoutNode().AddLayoutDescription(customLayoutId, customLayout)

# Switch to the new custom layout
layoutManager.setLayout(customLayoutId)

```
