PixelValuePositions

WMA link


PixelValuePositions[image, val]

gives the positions of all pixels in image that have value val.

PixelValue