PixelValuePositions
PixelValuePositions[image,val] returns a list of pixel positions in image that exactly match the value val.
PixelValuePositions[image,val,d] returns all pixel positions that have values within a distance d from val.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.