imcolormaptool

Choose Colormap tool

Description

Use the imcolormaptool function to create a Choose Colormap tool. The Choose Colormap tool is an interactive colormap selection tool that allows you to change the colormap of a figure by selecting a colormap from a list of MATLAB® colormap functions or workspace variables, or by entering a custom MATLAB expression.

Choose Colormap Tool

imcolormaptool launches the Choose Colormap tool in a separate figure, which is associated with the current figure.

imcolormaptool(h) launches the Choose Colormap tool using h as the target figure. h must contain either a grayscale or an indexed image.

htool = imcolormaptool(___) returns a handle to the Choose Colormap tool figure, htool.

Examples

Open Choose Colormap Tool

h = figure;
imshow('cameraman.tif');
imcolormaptool(h); 

Input Arguments

collapse all

Handle to a figure or axes, specified as a handle.

Output Arguments

collapse all

Handle to Choose Colormap tool figure, returned as a handle.

See Also

| |

Introduced in R2009a