Determine image color type

조회 수: 9 (최근 30일)
SBakc
SBakc 2019년 9월 3일
답변: Image Analyst 2019년 9월 3일
Is it possible to determine the color type of an input image, such as, YUV?

답변 (1개)

Image Analyst
Image Analyst 2019년 9월 3일
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.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by