Display ImgLabeling

what would be a convenient way to display a ImgLabeling? the DisplayService.createDisplay() does not seem to like it…

ava.lang.ClassCastException: java.lang.ClassCastException:
 net.imglib2.roi.labeling.LabelingType cannot be cast to net.imglib2.type.numeric.RealType

I’m not sure what call you’re using exactly, but I would expect that <ImgLabeling>.getIndexImg() will give you a displayable RandomAccessibleInterval.


Thanks @bogovicj

since ImgLabeling is implementing RandomAccessibleInterval I was expecting, that the display service would be able to handle it as is. But I should have looked just a bit further…

No problem, glad it worked!