Converting pixel data from MatLab to something useable in OpenCV4Android

asked 2015-08-27 15:10:32 -0600

DDS_Mytheral gravatar image

updated 2015-08-27 15:31:55 -0600

So I have a bunch of data from MatLab in a 16bit format... Values like Red: 42676, Green: 60145, Blue: 38758 and I'm trying to convert it to something usable in OpenCV as my values coming back are like 238.38.

I'm at a bit of a loss how to make those numbers match up... Any idea's on how to convert the MatLab data would be appreciated.

edit: Is it as simple as dividing by 256?

edit retag flag offensive close merge delete

Comments

1

Mat (row,col,CV_16UC3) for unsigned short with three channels?

LBerger gravatar imageLBerger ( 2015-08-27 15:32:56 -0600 )edit