how to extract Y channel from YCuCv image?

I have a project named "Hierarchical Prediction and Context Adaptive Coding for Lossless Colour Image Compression". for that we need to convert image from RGB into YCuCv model by using RCT,and we have to extract "y" component from that YCuCv model.How do to it?

Antworten (1)

Thorsten
Thorsten am 17 Dez. 2014
Bearbeitet: Thorsten am 17 Dez. 2014

1 Stimme

See https://en.wikipedia.org/wiki/JPEG_2000#Color_components_transformation
I = imread('peppers.png');
R = I(:,:,1); G = I(:,:,2); B = I(:,:,3);
Y = floor((R + 2*G + B)/4);
Cb = B - G;
Cr = R - G;

Gefragt:

am 17 Dez. 2014

Bearbeitet:

am 17 Dez. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by