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

Hi, I have a picture like this
image

  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!

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.

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!

1 Like

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

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

image

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

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.

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)