Decoding color from a 48 bit BGR matrix

asked 2017-09-30 14:06:06 -0600

infoclogged gravatar image

I have a matrix where the value is stored as 33088, 33000 and 1. I am aware of 8 bit maps ( 24 bit BGR ) , but I cant find the color palette for 48 bit BGR. The above matrix is stored as 3 channel with CV_16U.

edit retag flag offensive close merge delete

Comments

your question is a bit unclear. there are no color palettes for 16bit images (and pallettes are never used in opencv at all)

what are you trying to achieve, and how does this format "get in your way" ?

berak gravatar imageberak ( 2017-10-01 01:40:21 -0600 )edit

the question is when i want to display red, then the matrix values in 8UC3 are cv::Scalar (0,0,255). What is the corresponding for 16 bit?

infoclogged gravatar imageinfoclogged ( 2017-10-01 03:13:02 -0600 )edit

like x*255 ?

berak gravatar imageberak ( 2017-10-01 03:54:28 -0600 )edit