| Mapping Toolbox™ | ![]() |
RGB = ind2rgb8(X,cmap)
RGB = ind2rgb8(X,cmap) creates an RGB image of class uint8. X must be uint8, uint16, or double, and cmap must be a valid MATLAB colormap.
% Convert the 'concord_ortho_e.tif' image to RGB.
[X, cmap] = imread('concord_ortho_e.tif');
RGB = ind2rgb8(X, cmap);
R = worldfileread('concord_ortho_e.tfw');
mapshow(RGB, R);
![]() | imbedm | ingeoquad | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |