Masking

Masking

is an option for various image and signal processing functions that specifies on which regions they should operate.

Details

  • Masking is also known as region of interest (ROI) or volume of interest (VOI).
  • The typical settings include:
  • Allentire object
    Automaticautomatic selection
    {pos1,pos2,}specific positions
    imagegrayscale or binary version of image
    regionany ConstantRegionQ
    graphicsuse positive raster values
    arrayuse positive values in array
  • When the region of interest is specified as an array or image, it is taken to be centered on the image to be processed.

Examples

open all close all

Basic Examples  (2)

Apply a function to image pixels in a specified region of interest:

In[1]:=
Click for copyable input
Out[1]=

Compute image measurements only on a specified region of interest:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Applications  (1)

Introduced in 2010
(8.0)
|
Updated in 2018
(11.3)