In volume rendering, after selecting a preset, I can drag the slider to adjust the ‘shift’ value. But I want to know how to adjust the ‘shift’ precisely?
The question is quite broad, but when I need to adjust it “precisely”, I tend to turn to one of the two following solutions:
- When simply the precision of moving the mouse is not enough and I want to take smaller steps: Click on the slider and use the left and right arrow keys
- When you have changed the shift or the transfer functions and want to be able to return to that state: save the volume property node and load it when you need the same display again
Thank you for the reply. It seems that the left and right arrow keys sometimes do not work. Even when they are working, a one press may be too ‘big’. Is the 'arrow’ adjusting the display at the finest level? I’m hoping I can input the ‘threshold’ value directly.
Well they always work for me… But if it’s too coarse for you then that’s not the way anyway.
Unfortunately the display settings in volume rendering are quite inconvenient. What you can try to do is going to Advanced / Volume properties, and change the node positions manually.
Or, you can play with this python snippet:
volRenWidget = slicer.modules.volumerendering.widgetRepresentation()
volumePropertyNodeWidget = slicer.util.findChild(volRenWidget, 'VolumePropertyNodeWidget')
volumePropertyNodeWidget.moveAllPoints(1, 0, False)
After having your initial volume rendering set up, paste the first two lines in the console, then paste the third one. The amount with which the “shift” will happen in this case will be 1. Feel free to change the value, and/or call the function as many times you need (up then enter) to do the shift step by step.