I’m trying to run the Swiss Skull Stripper from script and I’m getting this error every time:
"Swiss Skull Stripper standard error:
Exception caught !
itk::ImageFileReaderException (0000001D6C5BD080)
Location: "unknown"
File: c:\d\p\slicer-462-package\itkv4\modules\io\imagebase\include\itkImageFileReader.hxx
Line: 87
Description: FileName must be specified
I’m trying to figure out if there’s an error with parameters when invoking the module. I’m using this (in this order):
’’‘
parameters = {}
1. "atlasImage"
2. "atlasMask"
3. “patientVolume” 3
4. “patientOutputVolume” 4
5. “patientMaskLabel” 5
’’'
I’m running the module:
sss = slicer.modules.swissskullstripper
return (slicer.cli.run(sss, None, parameters))
that is the piece of code I’m using, but still not working!
I get your point, though. I’m loading/creating this four parameters (atlasMRIVolume, atlasMaskVolume, patientOutputVolume and patientMaskLabel) but for the patient volume I am just getting the ID:
So after almost a week…I haven’t been able to invoke the module without an error.
Does anyone know where can I found some documentation about the skull stripper or the swiss skull stripper?? I would really appreciate it.
Another way to find out what I need (what to pass as to the function!!!) would be to read the source code of the swissskullstripper module. Any idea how to do that???
wow!!
Ok, I’ll update the Slicer.
I’m trying to write a script for the python console: do you know what do I need to define and how to invoke (parameters needed) the skullstripper module ???
I appreciate the guidance…I already tested the GUI -and the results are quite interesting. I’ve tested the stripping changing parameters for different sets of images and now I would like to set all this values from the command line. Thanks for linking again the “Running a CLI from Python” code. I assure you that I have almost learnt those lines…the problem is, as you might be already guessing, that the parameters required for the Skull Stripping are not “Input Volume” and “Output Geometry” (as shown in the linked example). That’s what I’m looking for…some kind of documentation about the use of this module.
Thanks lassoan. I really appreciate the time you’re taking to help me out.