colorcloud
Display 3-D color gamut as point cloud in specified color space
Description
colorcloud( displays the
                                full color gamut of the color image rgb)rgb as a
                                point cloud. By default, colorcloud uses the RGB
                                color space.
colorcloud( displays
the full color gamut of the color image rgb,colorspace)rgb as
a point cloud in the color space specified by colorspace.
colorcloud(___,
                                displays the full color gamut using name-value pairs to control
                                aspects of the visualization.Name,Value)
hPanel = colorcloud(___)colorcloud.
Examples
Read in RGB image.
RGB = imread('peppers.png');View color gamut.
colorcloud(RGB,'hsv');
Input Arguments
Color image, specified as an m-by-n-by-3 numeric array.
Data Types: single | double | uint8 | uint16
Color space name, specified as one of these values:
| Value | Description | 
|---|---|
| 'hsv' | Color gamut in HSV color space | 
| 'lab' | Color gamut in CIE 1976 L*a*b* color space | 
| 'rgb' | Color gamut in RGB color space | 
| 'ycbcr' | Color gamut in YCbCr color space | 
Data Types: char | string
Name-Value Arguments
Specify optional pairs of arguments as
      Name1=Value1,...,NameN=ValueN, where Name is
      the argument name and Value is the corresponding value.
      Name-value arguments must appear after other arguments, but the order of the
      pairs does not matter.
    
      Before R2021a, use commas to separate each name and value, and enclose 
      Name in quotes.
    
Example: 'BackgroundColor','w'
Parent of the object created by
                                                  colorcloud, specified as a
                                                  figure or uipanel object. If you do not specify a
                                                  valid object, then the
                                                  colorcloud function creates a
                                                  new figure window.
Background color to the color cloud, specified as an RGB triplet, a color name, or a short color name.
You can specify any color using an RGB triplet. An RGB triplet is a 3-element row vector whose elements specify the intensities of the red, green, and blue components of the color. The intensities must be in the range [0, 1].
You can specify some common colors by name as a string scalar or character vector. This table lists the named color options and the equivalent RGB triplets.
| Color Name | Short Name | RGB Triplet | Appearance | 
|---|---|---|---|
| "red" | "r" | [1 0 0] | 
 | 
| "green" | "g" | [0 1 0] | 
 | 
| "blue" | "b" | [0 0 1] | 
 | 
| "cyan" | "c" | [0 1 1] | 
 | 
| "magenta" | "m" | [1 0 1] | 
 | 
| "yellow" | "y" | [1 1 0] | 
 | 
| "black" | "k" | [0 0 0] | 
 | 
| "white" | "w" | [1 1 1] | 
 | 
This table lists the default color palettes for plots in the light and dark themes.
| Palette | Palette Colors | 
|---|---|
| 
 Before R2025a: Most plots use these colors by default. | 
 | 
| 
 | 
 | 
You can get the RGB triplets for these palettes using the
                orderedcolors function (since R2023b). For example, get the RGB triplets for
        the "gem"
        palette.
RGB = orderedcolors("gem");Example: 'BackgroundColor','r'
Example: 'BackgroundColor','green'
Example: 'BackgroundColor',[0 0.4470
                                                  0.7410]
Color of the wire frame, specified as an RGB
                                                  triplet, a color name, a short color name, or
                                                  'none'. If you specify the
                                                  value 'none', then
                                                  colorcloud deletes the wire
                                                  frame.
You can specify any color using an RGB triplet. An RGB triplet is a 3-element row vector whose elements specify the intensities of the red, green, and blue components of the color. The intensities must be in the range [0, 1].
You can specify some common colors by name as a string scalar or character vector. This table lists the named color options and the equivalent RGB triplets.
| Color Name | Short Name | RGB Triplet | Appearance | 
|---|---|---|---|
| "red" | "r" | [1 0 0] | 
 | 
| "green" | "g" | [0 1 0] | 
 | 
| "blue" | "b" | [0 0 1] | 
 | 
| "cyan" | "c" | [0 1 1] | 
 | 
| "magenta" | "m" | [1 0 1] | 
 | 
| "yellow" | "y" | [1 1 0] | 
 | 
| "black" | "k" | [0 0 0] | 
 | 
| "white" | "w" | [1 1 1] | 
 | 
This table lists the default color palettes for plots in the light and dark themes.
| Palette | Palette Colors | 
|---|---|
| 
 Before R2025a: Most plots use these colors by default. | 
 | 
| 
 | 
 | 
You can get the RGB triplets for these palettes using the
                orderedcolors function (since R2023b). For example, get the RGB triplets for
        the "gem"
        palette.
RGB = orderedcolors("gem");Example: 'WireFrameColor','r'
Example: 'WireFrameColor','green'
Example: 'WireFrameColor',[0.8500
                                                  0.3250 0.0980]
Color of the orientation axes and labels,
                                                  specified as an RGB triplet, a color name, a short
                                                  color name, or 'none'. If you
                                                  specify the value 'none', then
                                                  colorcloud deletes the
                                                  labels.
You can specify any color using an RGB triplet. An RGB triplet is a 3-element row vector whose elements specify the intensities of the red, green, and blue components of the color. The intensities must be in the range [0, 1].
You can specify some common colors by name as a string scalar or character vector. This table lists the named color options and the equivalent RGB triplets.
| Color Name | Short Name | RGB Triplet | Appearance | 
|---|---|---|---|
| "red" | "r" | [1 0 0] | 
 | 
| "green" | "g" | [0 1 0] | 
 | 
| "blue" | "b" | [0 0 1] | 
 | 
| "cyan" | "c" | [0 1 1] | 
 | 
| "magenta" | "m" | [1 0 1] | 
 | 
| "yellow" | "y" | [1 1 0] | 
 | 
| "black" | "k" | [0 0 0] | 
 | 
| "white" | "w" | [1 1 1] | 
 | 
This table lists the default color palettes for plots in the light and dark themes.
| Palette | Palette Colors | 
|---|---|
| 
 Before R2025a: Most plots use these colors by default. | 
 | 
| 
 | 
 | 
You can get the RGB triplets for these palettes using the
                orderedcolors function (since R2023b). For example, get the RGB triplets for
        the "gem"
        palette.
RGB = orderedcolors("gem");Example: 'OrientationAxesColor','r'
Example: 'OrientationAxesColor','green'
Example: 'OrientationAxesColor',[0.9290
                                                  0.6940 0.1250]
Output Arguments
Color gamut point cloud, returned as a uipanel object.
Version History
Introduced in R2016b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)









