You can use slicer.util.loadNodeFromFile
. For example:
sequenceNode = slicer.util.loadNodeFromFile("c:/tmp/something.seq.nrrd", "SequenceFile")
I’ve added a slicer.uitil.loadSequence
convenience function to make this easier to figure out.
You can use slicer.util.loadNodeFromFile
. For example:
sequenceNode = slicer.util.loadNodeFromFile("c:/tmp/something.seq.nrrd", "SequenceFile")
I’ve added a slicer.uitil.loadSequence
convenience function to make this easier to figure out.