CLI module output image segmentation


I would like to create a custom module, just like the BlurImage example.

I put mine under Segmentation modules.
When using the module, under the IO parameters I can chose Output Volume as creating a new volume, or creating a new LabelmapVolume.(and these work properly)

How could I chose to create a new segmentation? I tried to find it here but I didn’t.


It is a bit hidden in the documentation, but the relevant part is this:

<image [type=“scalar |label |tensor |diffusion-weighted |vector |model “] [reference=”…”]>

If you want to select a segmentation node as input or output, you can specify type="label" for your image element in the .xml file. See example here.

1 Like