I have an image
and want to mark each pixel which has a brightness of 1 with yellow color.
The image
is (png, 8bit):
My code to find and mark overexposed pixels:
imageData = ImageData[image];
overexposedPositions = Position[imageData, n_ /; n == 1];
x = overexposedPositions[[All, 1]];
y = overexposedPositions[[All, 2]];
data = Transpose[{y, dimImage[[2]] - x}];
Show[image, Graphics[{Yellow, Point[#] & /@ data}]]
When I compare these two images I can see that pixels are marked yellow but are not overexposed?! So there must be an error in my code.
How would you solve this problem?