Choose Colormap tool
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(
launches the Choose
Colormap tool using h
)h
as the target figure.
h
must contain either a grayscale or an indexed
image.
returns a handle to the Choose Colormap tool figure,
htool
= imcolormaptool(___)htool
.
h = figure;
imshow('cameraman.tif');
imcolormaptool(h);