Image Processing Toolbox    

Other Selection Methods

roipoly provides an easy way to create a binary mask. However, you can use any binary image as a mask, provided that the binary image is the same size as the image being filtered.

For example, suppose you want to filter the intensity image I, filtering only those pixels whose values are greater than 0.5. You can create the appropriate mask with this command.

You can also use the roicolor function to define the region of interest based on a color or intensity range. For more information, see the reference page for roicolor.


  Selecting a Polygon Filtering a Region