I found that, apparently, a mapped version of the function does not work in the sub-plot. What is this design?
The following script
rgb = imread ('../FruitSample_small.png'); [Ind, map] = rgb2ind (RGB, 4); Figure imshow (IND, map) data subplot (5,1,1); Imashov (Ind, Map) Subplot (5,1,2); Imshov (ind == 0) subplot (5,1,3); Imshov (ind == 1) subplot (5,1,4); Imashov (Ind == 2) subplot (5,1,5); Imshow (Ind == 3) Generates the following results
That means the map version looks black if I plot only the mapped version (5x) it looks fine, that is Later, plotting apparently changes the palette.
How do all these 5 images be applied in the same shape?
Colormap is a property of the figure; Resetts the Colormap for the entire code for some more information and the problem is a Matlab file exchange solution. If you download the function described in that link, then FreezeCollers , You can use it in your code. rgb = imread ('peppers.png'); % Example image was included in matlab [ind, map] = rgb2ind (rgb, 4); Figure imshow (IND, map) data subplot (5,1,1); Imshov (ind, map) freezole, keep the colors in colors only after the colors are displayed in other subdivisions (5,1,2); Imshov (ind == 0) freeze-colour subplot (5,1,3); Imshov (ind == 1) subplot (5,1,4); Imashov (Ind == 2) subplot (5,1,5); Imshow (Ind == 3) and the resulting second figure will look like this:
No comments:
Post a Comment