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 allclose all

Basic Examples  (2)

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

Compute image measurements only on a specified region of interest:

Scope  (1)

Perform color negation to the whole image:

This is equivalent to Masking->All:

Use a region as the mask:

Use a binary image as the mask:

Use a grayscale image as the mask:

Applications  (1)

Separate the foreground from the background:

Apply a function to the background:

Wolfram Research (2010), Masking, Wolfram Language function, https://reference.wolfram.com/language/ref/Masking.html (updated 2018).

Text

Wolfram Research (2010), Masking, Wolfram Language function, https://reference.wolfram.com/language/ref/Masking.html (updated 2018).

CMS

Wolfram Language. 2010. "Masking." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2018. https://reference.wolfram.com/language/ref/Masking.html.

APA

Wolfram Language. (2010). Masking. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Masking.html

BibTeX

@misc{reference.wolfram_2024_masking, author="Wolfram Research", title="{Masking}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/Masking.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_masking, organization={Wolfram Research}, title={Masking}, year={2018}, url={https://reference.wolfram.com/language/ref/Masking.html}, note=[Accessed: 21-November-2024 ]}