How to convert a YUV image to grayscale? I need to use it for image compression.
조회 수: 25 (최근 30일)
이전 댓글 표시
Initially I am given an RGB image but in image compression I need to convert this image to YUV format, which in MATLAB is easy. But is there any way to convert this YUV image to gray scale image so that DCT can be easily found? Or, is there any other way to find DCT for a YUG format image? Thank you.
댓글 수: 0
채택된 답변
Image Analyst
2017년 7월 14일
If you have a YUV image, the gray scale version is the Y channel
grayImage = yuvImage(:, :, 1); % Channel 1, the Y channel, is the grayscale version
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Modify Image Colors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!