|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
PixelValuePositions
PixelValuePositions[image, val]
returns a list of pixel positions in image that match the value val.
PixelValuePositions[image, val, d]
returns all pixel positions that have values within a distance d from val.
DetailsDetails
- PixelValuePositions returns a list of integer positions
where
, with
assumed to be in the standard image coordinate system where the values of x range from
to width, and the values of y range from
to height. Pixel position
represents the center of the pixel at the bottom-left corner. - For three-dimensional images, PixelValuePositions[image, val] returns the positions
, such that pixel position
corresponds to the center of the bottom-left front pixel. - In PixelValuePositions[image, val], val can be a scalar, a list of channel values, or a color.
- PixelValuePositions[image, val] is equivalent to PixelValuePositions[image, val, 0].
- PixelValuePositions[image, "Min"] and PixelValuePositions[image, "Max"] can be used to return pixel positions with minimum and maximum intensity values, respectively.
- ImageValuePositions[image, val] is equivalent to PixelValuePositions[image, val]-0.5.
New in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
