How to convert a YUV image to grayscale? I need to use it for image compression.

23 ビュー (過去 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.

採用された回答

Image Analyst
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 件)

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by