Description: % function [L, a, b] = RGB2Lab(R, G, B)
% RGB2Lab takes matrices corresponding to Red, Green, and Blue, and
% transforms them into CIELab. This transform is based on ITU-R
% Recommendation BT.709 using the D65 white point reference.
% The error in transforming RGB -> Lab -> RGB is approximately
% 10^-5. RGB values can be either between 0 and 1 or between 0 and 255.
% By Mark Ruzon from C code by Yossi Rubner, 23 September 1997.
% Updated for MATLAB 5 28 January 1998.-% function [L, a, b] = RGB2Lab(R, G, B)
% RGB2Lab takes matrices corresponding to Red, Green, and Blue, and
% transforms them into CIELab. This transform is based on ITU-R
% Recommendation BT.709 using the D65 white point reference.
% The error in transforming RGB-> Lab-> RGB is approximately
% 10^-5. RGB values can be either between 0 and 1 or between 0 and 255.
% By Mark Ruzon from C code by Yossi Rubner, 23 September 1997.
% Updated for MATLAB 5 28 January 1998. Platform: |
Size: 2048 |
Author:郑成勇 |
Hits:
Description: Convert a color image between color representations.
B = COLORSPACE(S,A) converts the color representation of image A
where S is a string specifying the conversion. S tells the
source and destination color spaces, S = dest<-src , or
alternatively, S = src->dest . Supported color spaces are
RGB R G B Red Green Blue (ITU-R BT.709 gamma-corrected)
YPbPr Luma (ITU-R BT.601) + Chroma
YCbCr / YCC Luma + Chroma ("digitized" version of Y PbPr)
YUV NTSC PAL Y UV Luma + Chroma
YIQ NTSC Y IQ Luma + Chroma
YDbDr SECAM Y DbDr Luma + Chroma
JPEGYCbCr JPEG-Y CbCr Luma + Chroma
HSV / HSB Hue Saturation Value/Brightness
HSL / HLS / HSI Hue Saturation Luminance/Intensity
XYZ CIE XYZ
Lab CIE L*a*b* (CIELAB)
Luv CIE L*u*v* (CIELUV)
Lch CIE L*ch (CIELCH)-Convert a color image between color representations. B = COLORSPACE (S, A) converts the color representation of image A where S is a string specifying the conversion. S tells the source and destination color spaces, S = ' dest <-src' , or alternatively, S = ' src-> dest' . Supported color spaces are ' RGB' R' G' B ' Red Green Blue (ITU-R BT.709 gamma-corrected)' YPbPr ' Luma (ITU-R BT.601 )+ Chroma ' YCbCr' /' YCC' Luma+ Chroma ( " digitized" version of Y' PbPr) ' YUV' NTSC PAL Y' UV Luma+ Chroma ' YIQ' NTSC Y' IQ Luma+ Chroma ' YDbDr' SECAM Y ' DbDr Luma+ Chroma ' JPEGYCbCr' JPEG-Y' CbCr Luma+ Chroma ' HSV' /' HSB' Hue Saturation Value/Brightness' HSL ' /' HLS ' /' HSI ' Hue Saturation Luminance/Intensity' XYZ ' CIE XYZ' Lab ' CIE L* a* b* (CIELAB)' Luv ' CIE L* u* v* (CIELUV)' Lch ' CIE L* ch (CIE Platform: |
Size: 4096 |
Author:张灯结 |
Hits:
Description: RGB,YCbCr,HSV,HSL,CIE等颜色空间转换
这个Matlab程序用于颜色空间的转换。可以在RGB, YPbPr, YCbCr, YUV, YIQ, YDbDr, JPEG-YCbCr, HSV, HSL, XYZ, CIE Lab (CIELAB), CIE Luv (CIELUV), and CIE Lch (CIELCH)等颜色空间中任意转换。-B = colorspace( dest<-src , A) converts image A from color space src to color space dest .
Example:
B = colorspace( HSV<-RGB ,A) Convert image A from RGB to HSV
C = colorspace( YCbCr<-HSV ,B) Convert HSV to YCbCr
D = colorspace( RGB<-YCbCr ,C) Convert YCbCr back to RGB
Platform: |
Size: 4096 |
Author:李佳航 |
Hits:
Description: rgb2lab() Converte de RGB image to para LAB, a LAB2RGB Convert an image from CIELAB to RGB. Platform: |
Size: 2048 |
Author:ketan chaudhari |
Hits: