MATLAB Answers

SBakc
0

Determine image color type

Asked by SBakc
on 3 Sep 2019
Latest activity Answered by Image Analyst
on 3 Sep 2019
Is it possible to determine the color type of an input image, such as, YUV?

  1 Comment

Sign in to comment.

1 Answer

Answer by Image Analyst
on 3 Sep 2019

You might be able to. If it's just a bunch of numbers for the pixel values then you don't necessarily know unless the image header told you. But if you display it and it doesn't look "right" - like it looks like a sharp, in-focus image but just has funky colors like a negative or something - then you can try to convert it from the other colorspaces to RGB, like with ycbcr2rgb() or hsv2rgb(), and see which function seems to give the best RGB image.

  0 Comments

Sign in to comment.