BUILT-IN MATHEMATICA SYMBOL

# 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

• ImageValuePositions assumes the standard image coordinate system, where x runs from to width and y runs from to height. Image position corresponds to the bottom-left corner of the image.
• ImageValuePositions always returns coordinates representing the centers of the pixels. Position represents the center of the pixel at the bottom-left corner.
• Use PixelValuePositions to get integer indices for the pixel positions. ImageValuePositions[image, val] is equivalent to PixelValuePositions[image, val]-0.5.
• For three-dimensional images, ImageValuePositions[image, val] returns the positions given in the standard image coordinate system, where x runs from to width, y runs from to depth, and z runs from to height. The position corresponds to the bottom-left front corner. Image position represents the center of the pixel at the bottom-left front corner.
• In ImageValuePositions[image, val], val can be a scalar, a list of channel values, or a color.
• ImageValuePositions[image, val] is equivalent to ImageValuePositions[image, val, 0].
• ImageValuePositions[image, "Min"] and ImageValuePositions[image, "Max"] can be used to return pixel positions with minimum and maximum intensity values, respectively.

## ExamplesExamplesopen allclose all

### Basic Examples (3)Basic Examples (3)

Extract positions of the white pixels:

 Out[1]=

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

 Out[1]=

Positions of white pixels in a 3D image:

 Out[1]=