BW= roicolor(I,low,high)returns an ROI selected as those pixels in imageIthat lie within the range [low high]. The returned value,BW, is a binary image with0s outside the region of interest and1s inside.
BW= roicolor(I,v)returns an ROI selected as those pixels in imageIthat match values in vectorv.
Load an indexed imageXwith colormapmap. The colormap has 128 colors. Display the indexed image.
loadtreesimshow(X,map)
Create a binary mask image based on color. The mask istruefor pixels with index in the range [10, 20]. The mask isfalsefor 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.