MAT image type / structure [closed]

asked 2015-06-18 10:49:56 -0600

mcsplace gravatar image

I see defines to convert (using cvtColor for example) colour space (COLOR_YUV22GRAY) or representation (COLOR_RGB2BGR), but is there a mechanism to store or determine if a image is RGB, YUV2, or BGR, etc...?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mcsplace
close date 2015-06-22 19:23:40.204615

Comments

no, there is not. you can query mat.channels(), mat.type(), and mat.depth(), but that does no give you any semantic information.

you'll have to track your colourspace on your own, i guess. usually this is not a problem

berak gravatar imageberak ( 2015-06-18 10:54:22 -0600 )edit