Converting pixel data from MatLab to something useable in OpenCV4Android
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?
Mat (row,col,CV_16UC3) for unsigned short with three channels?