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.
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?
How to only show the green line in this figure, they are intersection lines
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
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)