Hey guys,
I am Cong, a student learning image analysis. I am writing to ask how to launch ITK-SNAP and open a nii file in MATLAB?
I am working on something like
command='C:\Program Files (x86)\ITK-SNAP 3.2\bin\ITK-SNAP -g baseline.nii';
system(command)
(assuming there is a baseline.nii file in the path).
I tried the command in command prompt and it works. But in MATLAB with the system function it kept telling me that
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
It is weird that when I try
command='C:\Program Files (x86)\ITK-SNAP 3.2\bin\ITK-SNAP';
system(command)
The code works! I really don't know why adding the -g baseline.nii crashes the function. Please help!