OpenCV4Android - Get 16bit pixel values?
Is there a way to get 16bit values back from a pixel on a Mat? Mat.get() seems to only return 8bit values... And I'd really like a more exact number there.
Thanks
hmm, sure you can just do like:
Mat dst = new Mat(); src.convertTo(dst, CvType.16U);
but that only 'blows up' the original data. if your Mat is just 8 bit, you've lost all precision already there,