MAT image type / structure [closed]
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...?
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