Im using Slice 3D for identification of the Urethra in prostate cancer. I’m making few sets of training data that I’ll export in python for the machine learning and deep learning. How should I save the format of the segmentation?
In general, I would recommend to use .nrrd format for storing image volumes (simple format that can properly save image geometry, it has human-readable header, and reader/writer in most development environment). You can use
slicer.util.saveNode() to save a volume node to file.