pyushkevich/itksnap

Hello, is there any way to load corresponding label nii file automatically?

Opened this issue · 3 comments

Hello, I am a researcher using Itk for more than two years, I love itksnap, now I have many patients' data needed be checked, I wonder is there anyway to open image nii and label nii simultaneously, without any comfirmed button?

Hi @xh542428798 ,
You should be able to open them through CLI iteratively. In your case you need use -g -s .

This is from a MAC OS. Linux distributions works the same. I am not sure about Windows. Below is the usage:

/ITK-SNAP.app/Contents/bin/itksnap --help
ITK-SnAP Command Line Usage:
/Applications/ITK-SNAP.app/Contents/MacOS/ITK-SNAP [options] [main_image]
Image Options:
-g FILE : Load the main image from FILE
-s FILE : Load the segmentation image from FILE
-l FILE : Load label descriptions from FILE
-o FILE [FILE+] : Load additional images from FILE
: (multiple files may be provided)
-w FILE : Load workspace from FILE
: (-w cannot be mixed with -g,-s,-l,-o options)
Additional Options:
-z FACTOR : Specify initial zoom in screen pixels/mm
--cwd PATH : Start with PATH as the initial directory
--threads N : Limit maximum number of CPU cores used to N.
--scale N : Scale all GUI elements by factor of N (e.g., 2).
--geometry WxH+X+Y : Initial geometry of the main window.
Debugging/Testing Options:
--debug-events : Dump information regarding UI events
--test list : List available tests.
--test TESTID : Execute a test.
--testdir DIR : Set the root directory for tests.
--testacc factor : Adjust the interval between test commands by factor (e.g., 0.5).
--css file : Read stylesheet from file.
--opengl MAJOR MINOR : Set the OpenGL major and minor version. Experimental.
--testgl : Diagnose OpenGL/VTK issues.
Platform-Specific Options:

Thank you.

Thanks a lot, let me have a try