ImageValuePositions

ImageValuePositions[image,val]

returns a list of pixel positions in image that match the value val.

ImageValuePositions[image,val,d]

returns all pixel positions that have values within a distance d from val.

Details

Examples

open allclose all

Basic Examples  (3)

Extract positions of the white pixels:

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

Extract positions of pixels with values within the specified distance from white:

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

Positions of white pixels in a 3D image:

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

Scope  (4)

Properties & Relations  (1)

See Also

PixelValuePositions  ImageValue  PixelValue  ReplacePixelValue  ReplaceImageValue  Position

Introduced in 2012
(9.0)