how to convert RGB image into YCuCv model by using reversible colour transform ?

I need to perform the above asked method in my project.

1 commentaire

But in one of project pdf's I studied that RGB to YCbCr transform may be the most frequently used one for the lossy compression of colour image .But I need to perform it for lossless compression.

Connectez-vous pour commenter.

Réponses (1)

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;

6 commentaires

i need to convert RGB into YCuCv but not YCbCr, now would you please explain how to do this?
You probably mean Yuv. This term is used interchangeably with YCbCr for digital images; see my response to your other question.
i need to convert rgb into YCuCv by using Reversible color transform,so kindly give me the answer with explanation.
But in one of project pdf's I studied that RGB to YCbCr transform [7] may be the most frequently used one for the lossy compression of colour image .But I need to perform it for lossless compression.
Reversible color tranformation means lossless here. Please check the link I provided to see how to convert back to RGB.
Just use imwrite() to create a PNG file. I don't know what it does internally, but it's the lossless compression method that is the most commonly used.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange

Question posée :

le 17 Déc 2014

Commenté :

le 20 Déc 2014

Community Treasure Hunt

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

Start Hunting!

Translated by