ClassificationMapRegularization output pixel values are always on 8 bits
Mantis Issue 760, reported by sdinot, assigned to cpeyrega, created: 2013-07-31
Pixels values in the output of ClassificationMapRegularization are between 0 and 255 even if the input image is a 16 bit image and output type set to uint16 for instance.
Example: Input image: Pixel values are 210,222,310,320 Output image: Pixel values are 210,222,54,64
1375264007 - grizonnetmyou're right, we change the pixel type for the classification app to uint32 but not in this app.
We need to update the trunk to also modify this for the MapRegularization application
1375281706 - cpeyregaIn fact the ImageClassifier application handles UINT16 output images, not UINT32.
I corrected this issue with the same method. Now the ClassificationMapRegularization application handles UINT16 input and output images in order to have maximal class labels equal to 65535.
(Revision OTB 16170: http://hg.orfeo-toolbox.org/OTB/rev/69364637a44f)
1375281863 - cpeyregaThe documentation of the ClassificationMapRegularization application was updated too.
Please give us some feedback with your data before we close this issue.
1375348803 - MorganI tested this morning and it works, thank you for this quick correction
1375349483 - cpeyregaYou're welcome.
Thank you for your feedback. The issue will be set to resolved.