WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

Masking

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

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
See Also
Related Guides
History
Cite this Page

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:
  • All entire object
    Automatic automatic selection
    {pos1,pos2,} specific positions
    image grayscale or binary version of image
    region any ConstantRegionQ
    graphics use positive raster values
    array use 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:

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_2025_masking, author="Wolfram Research", title="{Masking}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/Masking.html}", note=[Accessed: 04-January-2026]}

BibLaTeX

@online{reference.wolfram_2025_masking, organization={Wolfram Research}, title={Masking}, year={2018}, url={https://reference.wolfram.com/language/ref/Masking.html}, note=[Accessed: 04-January-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /