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:
  • colorcolors near color
    ColorsNear[color,d,]explicit specification of colors near color

Examples

open all close all

Basic Examples  (1)

Use ColorDetect to compute an image region:

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

Use the region as an alpha channel:

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

Scope  (3)

Applications  (1)

Introduced in 2019
(12.0)