Operating system:win 7
Slicer version:3Dslicer 4.9.0-2017-11-01 r26541
as seen in the screenshot,i was trying to save an array,then it came out an erro,but I can’t find out what I am doing wrong! the code was copied from here https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository
Thanks in advance!!
You are probably trying to write in a read-only program directory. Try specifying an absolute path (
I think it’s still a little difficult for me to specify an absolute path:disappointed_relieved:
how about print it out?how to do?
seem not good enough:neutral_face:
GOD!I try it out thank you!!
I would recommend you to complete Python and numpy tutorials, but to answer your question specifically, this should work:
import numpy as np
Of course, it is much more efficient to visualize 3D arrays as images (by slicing, volume rendering, segmenting, etc). If you hover over any position in the image, you can see the coordinate and grayscale value in the data probe widget in the bottom-left corner.
yes,you are right!that what thay say"书到用时方恨少"