How to convert a YUV image to grayscale? I need to use it for image compression.
28 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chandvi Arora
am 14 Jul. 2017
Beantwortet: Image Analyst
am 14 Jul. 2017
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 14 Jul. 2017
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Modify Image Colors finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!