measure.label should return uint 32 instead of uint 16
Geophoton-inc opened this issue · comments
Geophoton Inc. commented
Description:
measure.label returns an array of type unsigned int 16, which limits the number of labels to 65535. I'm hitting that limit, which forces me to split my input image in pieces to remain below that limit for each piece, process piecewise, and reassemble (a bit of a hassle). If the output was uint 32 instead, the limit would of course be much higher. I guess some related functions, such as regionprops, would need to be adjusted as well. Anyway, this would be a welcomed enhancement.
Geophoton Inc. commented
My bad. I was writing the label to a uint 16 tif. measure.label does return uint32. Apologies for the fuss.