Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

colorcloud

Display 3-D color gamut as point cloud in specified color space

Syntax

colorcloud(rgb)
colorcloud(rgb,colorspace)
colorcloud(___,Name,Value)
hPanel = colorcloud(___)

Description

colorcloud(rgb) displays the full color gamut of the color image rgb as a point cloud. By default, colorcloud uses the RGB color space.

example

colorcloud(rgb,colorspace) displays the full color gamut of the color image rgb as a point cloud in the color space specified by colorspace.

colorcloud(___,Name,Value) displays the full color gamut using name-value pairs to control aspects of the visualization.

hPanel = colorcloud(___) returns the uipanel object created by colorcloud.

Examples

collapse all

Read in RGB image

RGB = imread('peppers.png');

View color gamut

colorcloud(RGB,'hsv');

Input Arguments

collapse all

Color image, specified as an m-by-n-by-3 array.

Data Types: single | double | uint8 | uint16

Colorspace name, specified as one of the following values:

ValueDescription
'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

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example:

collapse all

Parent of the object created by colorcloud, specified as a figure or uipanel object. If you do not specify a valid object, colorcloud creates a new figure window.

Color used as background to the color cloud, specified as a MATLAB® ColorSpec.

Color of the color space wire frame, defined as MATLAB ColorSpec. If you specify the value 'none', colorcloud deletes the wire frame.

Color of the orientation axes and labels, specified as a MATLAB ColorSpec. If you specify the value 'none', colorcloud deletes the labels.

Output Arguments

collapse all

Color gamut point cloud, returned as a uipanel object.

Introduced in R2016b

Was this topic helpful?