Wrong Labeled image in Mean Shift
Mantis Issue 246, reported by sdinot, assigned to jmichel, created: 2011-03-06
I've used MeanShift with a relatively large image (5570x3745x3). When I Save the Labeled image, even if I select Unsigned Integer 32bits, I get the labels ranging from 0 to 2997 only, and thus the same label is repeated several times (there are many more than 2997 patches). See attachment for the labeled image displayed in QGIS. I think this is an error made at generating the labeled image, not at the time of saving it.
1299471779 - christopThis is due to the streaming.
alobo: one quick fix would be do deactivate streaming (but you need to have enough memory).
OTB Team: to fix this, one simple way would be to ensure that the labels affected in a given stream verify: label % totalStreams = streamNumber
We would loss the property that each label is given to a region (some labels will remains empty), but I don't think we use that anywhere.
1429255161 - julienWe now have proper ways of performing piece-wise segmentation, and MeanShift segmentation filters do not support streaming per se anymore.