28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

hsv2rgb<br />

2hsv2rgb<br />

Purpose Convert HSV colormap to RGB colormap<br />

Syntax M = hsv2rgb(H)<br />

Description M = hsv2rgb(H) converts a hue-saturation-value (HSV) colormap to a<br />

red-green-blue (RGB) colormap. H is an m-by-3 matrix, where m is the number<br />

of colors in the colormap. The columns of H represent hue, saturation, and<br />

value, respectively. M is an m-by-3 matrix. Its columns are intensities of red,<br />

green, and blue, respectively.<br />

2-1104<br />

rgb_image = hsv2rgb(hsv_image) converts the HSV image to the equivalent<br />

RGB image. HSV is an m-by-n-by-3 image array whose three planes contain<br />

the hue, saturation, and value components for the image. RGB is returned as<br />

an m-by-n-by-3 image array whose three planes contain the red, green, and<br />

blue components for the image.<br />

Remarks As H(:,1) varies from 0 to 1, the resulting color varies from red through yellow,<br />

green, cyan, blue, and magenta, and returns to red. When H(:,2) is 0, the<br />

colors are unsaturated (i.e., shades of gray). When H(:,2) is 1, the colors are<br />

fully saturated (i.e., they contain no white component). As H(:,3) varies from<br />

0 to 1, the brightness increases.<br />

The MATLAB hsv colormap uses hsv2rgb([hue saturation value]) where<br />

hue is a linear ramp from 0 to 1, and saturation and value are all 1’s.<br />

See Also brighten, colormap, rgb2hsv<br />

“Color Operations” for related functions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!