Dear all,
Here is the thing I want to do, thank you in advance for any possible help!
With Slicer 4.11,I am using capture screenshot module to record my volume slice along the P-A orientation.
By default, I take a 3D only screenshot like this:
When I load this Screenshot.png file into MATLAB or Python, I checked this dimension which is 617x1015x4.There are four channels R,G,B,A so the last dimension is 4 but what I care is the 617x1015,this seems like to be the default display window size.
Under this window size, my slice size is not quite right.
The red line rectangle is different from the particular 300x400 dimension in the volume information module as follows:
When I adjust the volume size manually by zooming in or zooming out,for example:
I can get the smaller size but it is too small than 300x400.So in this situation I have to adjust again and again until I load this png file into Python and find the dimesion is 300x400.
Manual adjustment is quite time-comsuming and inefficient.So I am wondering if there is a way to let the volume zoom-in or zoom-out to become an exact size with python code.
I think there maybe a node in the scene.mrml file that controls the size of the volume.
Thank you for your attention and I will be grateful if you can give me some advice!