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
)
returns the uipanel object created by
hPanel
= colorcloud(___)colorcloud
.
Examples
View 3D Color Gamut of RGB Image in HSV Color Space
Read in RGB image
RGB = imread('peppers.png');
View color gamut
colorcloud(RGB,'hsv');
Input Arguments
rgb
— Color image
m-by-n-by-3
numeric array
Color image, specified as an m-by-n-by-3 numeric array.
Data Types: single
| double
| uint8
| uint16
colorspace
— Color space name
'rgb'
(default) | 'hsv'
| 'ycbcr'
| 'lab'
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
— Parent of object created by colorcloud
new figure (default)
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.
BackgroundColor
— Background color
[0.94 0.94
0.94]
(default) | RGB triplet | color name | short color name
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] |
|
Here are the RGB triplets for the default colors that MATLAB® uses in many types of plots.
RGB Triplet | Appearance |
---|---|
[0 0.4470 0.7410] |
|
[0.8500 0.3250 0.0980] |
|
[0.9290 0.6940 0.1250] |
|
[0.4940 0.1840 0.5560] |
|
[0.4660 0.6740 0.1880] |
|
[0.3010 0.7450 0.9330] |
|
[0.6350 0.0780 0.1840] |
|
Example: 'BackgroundColor','r'
Example: 'BackgroundColor','green'
Example: 'BackgroundColor',[0 0.4470
0.7410]
WireFrameColor
— Color of wire frame
'black'
(default) | 'none'
| RGB triplet | color name | short color name
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] |
|
Here are the RGB triplets for the default colors that MATLAB uses in many types of plots.
RGB Triplet | Appearance |
---|---|
[0 0.4470 0.7410] |
|
[0.8500 0.3250 0.0980] |
|
[0.9290 0.6940 0.1250] |
|
[0.4940 0.1840 0.5560] |
|
[0.4660 0.6740 0.1880] |
|
[0.3010 0.7450 0.9330] |
|
[0.6350 0.0780 0.1840] |
|
Example: 'WireFrameColor','r'
Example: 'WireFrameColor','green'
Example: 'WireFrameColor',[0.8500
0.3250 0.0980]
OrientationAxesColor
— Color of orientation axes and labels
'black'
(default) | 'none'
| RGB triplet | color name | short color name
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] |
|
Here are the RGB triplets for the default colors that MATLAB uses in many types of plots.
RGB Triplet | Appearance |
---|---|
[0 0.4470 0.7410] |
|
[0.8500 0.3250 0.0980] |
|
[0.9290 0.6940 0.1250] |
|
[0.4940 0.1840 0.5560] |
|
[0.4660 0.6740 0.1880] |
|
[0.3010 0.7450 0.9330] |
|
[0.6350 0.0780 0.1840] |
|
Example: 'OrientationAxesColor','r'
Example: 'OrientationAxesColor','green'
Example: 'OrientationAxesColor',[0.9290
0.6940 0.1250]
Output Arguments
hPanel
— Color gamut point cloud
uipanel object
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)