Main Content

Color

Conversión entre distintos espacios de color y compatibilidad con perfiles del Consorcio Internacional del Color (ICC)

La toolbox representa los colores como valores RGB, pero también existen otros modelos para representar colores numéricamente. Se usan distintos espacios de color porque algunos de ellos presentan la información sobre el color de formas que facilitan ciertos cálculos o permiten identificar los colores de forma más intuitiva. La toolbox proporciona funciones para convertir los datos de color de un espacio de color a otro. La toolbox también admite perfiles del Consorcio Internacional del Color (ICC) para describir los colores.

Funciones

expandir todo

rgb2hsvConvert RGB colors to HSV
rgb2labConvertir RGB a L*a*b* CIE 1976
rgb2ntscConvertir valores de color RGB al espacio de color NTSC
rgb2xyzConvertir RGB en CIE 1931 XYZ
rgb2ycbcrConvertir valores de color RGB al espacio de color YCbCr
rgbwide2ycbcrConvert wide-gamut RGB color values to YCbCr color values (desde R2020b)
rgbwide2xyzConvert wide-gamut RGB color values to CIE 1931 XYZ color values (desde R2020b)
hsv2rgbConvert HSV colors to RGB
lab2rgbConvertir L*a*b* CIE 1976 a RGB
lab2xyzConvertir L*a*b* CIE 1976 a XYZ CIE 1931
ntsc2rgbConvertir valores NTSC al espacio de color RGB
xyz2labConvertir CIE 1931 XYZ en CIE 1976 L*a*b*
xyz2rgbConvertir CIE 1931 XYZ en RGB
xyz2rgbwideConvert CIE 1931 XYZ color values to wide-gamut RGB color values (desde R2020b)
ycbcr2rgbConvertir valores de color YCbCr al espacio de color RGB
ycbcr2rgbwideConvert YCbCr color values to wide-gamut RGB color values (desde R2020b)
colorcloudDisplay 3-D color gamut as point cloud in specified color space
lab2doubleConvert L*a*b* color values to double
lab2uint16Convert L*a*b color values to uint16
lab2uint8Convert L*a*b color values to uint8
xyz2doubleConvert XYZ color values to double
xyz2uint16Convert XYZ color values to uint16
iccfindFind ICC profiles
iccreadRead ICC profile
iccrootFind system default ICC profile repository
iccwriteWrite ICC color profile data
isiccCheck for valid ICC profile data
makecformCreate color transformation structure
applycformApply device-independent color space transformation
imapproxApproximate indexed image by reducing number of colors
chromadaptAdjust color balance of RGB image with chromatic adaptation
illumgrayEstimate illuminant using gray world algorithm
illumpcaEstimate illuminant using principal component analysis (PCA)
illumwhiteEstimate illuminant using White Patch Retinex algorithm
lin2rgbApply gamma correction to linear RGB values
rgb2linLinearize gamma-corrected RGB values
whitepointValores de color XYZ de iluminantes estándar
colorangleAngle between two RGB vectors
deltaEColor difference based on CIE76 standard (desde R2020b)
imcolordiffColor difference based on CIE94 or CIE2000 standard (desde R2020b)

Temas

  • Understanding Color Spaces and Color Space Conversion

    A color space maps a color in a multidimensional coordinate system. Color spaces have different advantages in identifying colors or performing calculations.

  • Device-Independent Color Spaces

    Device-independent color spaces define a standardized color space where three values represent a color. Different standards exist for many applications of color display.

  • Profile-Based Color Space Conversions

    Device profiles contain information about how input, output, and display devices reproduce colors. Convert the color space so displayed colors look the same across all devices.

  • Display Colors

    The bit depth of a screen display defines how many distinct colors the display can produce. You can determine and change the screen bit depth of your system.

  • Reduce the Number of Colors in an Image

    Learn how to reduce the number of colors in an image using color approximation or dithering.