image.type() function in opencv returns some value, how do we know what type that value represents?

asked 2016-06-08 01:54:34 -0600

Prakhar Mohan gravatar image

I have different types of images (8 bit 1 channel, 16 bit 1 channel etc). To determine the type of the image, i am using the Mat::type() function.

for some images it returns 2, for some it returns 16 etc etc. What type does this 2 and 16 represents.

If I can get a list of these image types, it would be the best. Thanks

edit retag flag offensive close merge delete

Comments

read the doc :Fixed Pixel Types. Limited Use of Templates

LBerger gravatar imageLBerger ( 2016-06-08 02:06:27 -0600 )edit

This table might also help: http://ninghang.blogspot.fr/2012/11/l...

kbarni gravatar imagekbarni ( 2016-06-08 09:45:24 -0600 )edit