[Y,newmap] = cmpermute(X,map) 随机对颜色图 map 中的颜色重新排序以生成一个新的颜色图 newmap。cmpermute 函数还修改索引图像 X 中的值以保持索引与颜色图之间的对应,并在 Y 中返回结果。图像 Y 和关联的颜色图 newmap 生成与 X 和 map 相同的图像。
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.