BW = roicolor(I,low,high)
returns an ROI selected as those pixels in image I that lie
within the range [low high]. The returned value,
BW, is a binary image with 0s outside
the region of interest and 1s inside.
Load an indexed image X with colormap map. The colormap has 128 colors. Display the indexed image.
load trees
imshow(X,map)
Create a binary mask image based on color. The mask is true for pixels with index in the range [10, 20]. The mask is false for pixels with index outside this range.
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.