|
SOLUTIONS
|
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.
New in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


