user2863023
user2863023

Reputation:

how to check whether image is YUV or RGB format

I have downloaded a program, in which there are multiple classes. In that one of the function receives an image as parameter. How can I check the Image received by that function in is in YUV format or RGB format using opencv ??

Upvotes: 2

Views: 972

Answers (1)

Michael Burdinov
Michael Burdinov

Reputation: 4438

You can't. Mat does not have such information. All you can get is depth and number of channels.

Upvotes: 1

Related Questions