ImageValuePositions
ImageValuePositions[image,val]
returns a list of pixel positions in image that exactly match the value val.
ImageValuePositions[image,val,d]
returns all pixel positions that have values within a distance d from val.
Details
- ImageValuePositions finds and returns pixels of specific values in 2D and 3D images and is typically used for locating features or removing artifacts.
- ImageValuePositions assumes the standard image coordinate system.
- ImageValuePositions always returns coordinates representing the centers of the pixels. Position represents the center of the pixel at the bottom-left corner.
- The pixel value val can be in one of the following forms:
-
s a scalar color a color {s1,s2,…} a list of channel values "Max" pixels with maximum intensity "Min" pixels with minimum intensity - Use PixelValuePositions to get integer indices for the pixel positions. ImageValuePositions[image,val] is equivalent to PixelValuePositions[image,val]-0.5.
Examples
open allclose allBasic Examples (2)
Scope (9)
Data (3)
Properties & Relations (2)
ImageValuePositions[image,val] is equivalent to ImageValuePositions[image,val,0].
ImageValuePositions[image,val] is equivalent to PixelValuePositions[image,val] minus :
Text
Wolfram Research (2012), ImageValuePositions, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageValuePositions.html.
CMS
Wolfram Language. 2012. "ImageValuePositions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ImageValuePositions.html.
APA
Wolfram Language. (2012). ImageValuePositions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageValuePositions.html