how to convert RGB image into YCuCv model by using reversible colour transform ?
Ältere Kommentare anzeigen
Antworten (1)
Thorsten
am 17 Dez. 2014
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 Kommentare
PRIYANKA
am 17 Dez. 2014
Thorsten
am 17 Dez. 2014
You probably mean Yuv. This term is used interchangeably with YCbCr for digital images; see my response to your other question.
PRIYANKA
am 17 Dez. 2014
PRIYANKA
am 17 Dez. 2014
Thorsten
am 17 Dez. 2014
Reversible color tranformation means lossless here. Please check the link I provided to see how to convert back to RGB.
Image Analyst
am 20 Dez. 2014
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.
Kategorien
Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!