is an option for various image and signal processing functions that specifies on which regions they should operate.
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 objectAutomatic automatic selection{pos1,pos2,…} specific positionsimage grayscale or binary version of imageregion any ConstantRegionQgraphics use positive raster valuesarray 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 allBasic 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)
Applications (1)
Separate the foreground from the background:
Apply a function to the background:
Related Guides
History
Introduced in 2010 (8.0) | Updated in 2012 (9.0) ▪ 2018 (11.3)
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]}