ColorDetect[image,cspec]
returns a mask image representing regions in image with colors within the specified color region.


ColorDetect
ColorDetect[image,cspec]
returns a mask image representing regions in image with colors within the specified color region.
Details

- ColorDetect is typically used to specify an image mask, including pixels within the color region.
- Possible settings for the color specification cspec include:
-
color colors near color ColorsNear[color,d,…] explicit specification of colors near color
Examples
open all close allBasic Examples (1)
Use ColorDetect to compute an image region:
Scope (3)
Related Guides
History
Text
Wolfram Research (2019), ColorDetect, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorDetect.html.
CMS
Wolfram Language. 2019. "ColorDetect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColorDetect.html.
APA
Wolfram Language. (2019). ColorDetect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorDetect.html
BibTeX
@misc{reference.wolfram_2025_colordetect, author="Wolfram Research", title="{ColorDetect}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/ColorDetect.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_colordetect, organization={Wolfram Research}, title={ColorDetect}, year={2019}, url={https://reference.wolfram.com/language/ref/ColorDetect.html}, note=[Accessed: 16-August-2025]}