Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xh542428798 opened this issue Nov 22, 2022 · 3 comments

Comments

@xh542428798
Copy link

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?

@dhinkris
Copy link

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.

@pyushkevich
Copy link
Owner

pyushkevich commented Nov 22, 2022 via email

@xh542428798
Copy link
Author

Thanks a lot, let me have a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants