cmpermute
Rearrange colors in colormap
Description
[
randomly reorders the colors in colormap Y
,newmap
] = cmpermute(X
,map
)map
to produce a new
colormap, newmap
. The cmpermute
function
also modifies the values in indexed image X
to maintain
correspondence between the indices and the colormap, and returns the result in
Y
. The image Y
and associated
colormap, newmap
, produce the same image as
X
and map
.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a