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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (3)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]=
Introduced in 2012
(9.0)