Open imagejan opened 5 years ago
Here's another example of an implementation that wouldn't be required if we had better tools in core Fiji:
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/segmentation-masks-from-rois-plugins/55582/2
Converting a list of ROIs to a label image (either consisting of suitable integers, or a real
Img<LabelingType>
) and vice versa is a common use case.You can find scripts doing this (or similar tasks) in several places online, e.g. this gist by @NicoKiaru: https://gist.github.com/NicoKiaru/ae00117cd6d33fea500d2867a5e669d9
I think it would be useful to have this functionality available "centralized" in Fiji, so let's implement
Converter
s for the following cases:ij.gui.Roi[]
<=>net.imagej.Img<IntegerType>
ij.gui.Roi[]
<=>net.imagej.Img<LabelingType>