Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to get bit depth of original jpg image

$
0
0
I have 32 bit per pixle jpg image i used the following vode to read the image int Ret = 0; //read the input image Mat orgMat = cv::imread(strInputFile,CV_LOAD_IMAGE_UNCHANGED ); if( orgMat.empty() ) { return ERROR_READ_FILE; } int iChannelsNum = orgMat.channels(); int iImageType = orgMat.type(); int iImageDepth = orgMat.depth(); How i can find the value which tell me the original bit depth of the image which 32 bpp the return values are iChannelsNum = 3 iImageType = 16 iImageDepth = 0 and the same return values when i read 24 bpp so how i can know that the original image is 32 bpp ?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>