Load an indexed image with its colormap into the workspace. Theloadcommand returns a structure containing the image data and the colormap. View the image.
RGB colormap, specified as ac-by-3 numeric matrix with values in the range [0, 1]. Each row ofmapis a three-element RGB triplet that specifies the red, green, and blue components of a single color of the colormap.
如果你有Computin平行g Toolbox™ installed,mapcan also be agpuArray.
Grayscale colormap, returned as ac-by-3 numeric matrix with values in the range [0, 1]. The three columns ofnewmapare identical, so that each row specifies a single intensity value.
如果你有Computin平行g Toolbox installed, thennewmapcan also be a gpuArray.
Data Types:double
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
Thread-Based Environment Run code in the background using MATLAB®backgroundPoolor accelerate code with Parallel Computing Toolbox™ThreadPool.
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.