OpenCV4Android - Get 16bit pixel values?

asked 2015-09-28 11:53:43 -0600

Silberlicht gravatar image

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

edit retag flag offensive close merge delete

Comments

1

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,

berak gravatar imageberak ( 2015-09-28 12:11:49 -0600 )edit