Red Eye Removal

Post your nifty GP projects here!

Moderator: MSandro

Post Reply
mguzdial
Posts: 70
Joined: Sep 15th, '15, 11:21

Red Eye Removal

Post by mguzdial » Jan 27th, '16, 23:08

This one is interesting because it requires a bit of searching to find the eye pixels and then find the red, so it's a more complex algorithm than we usually do in MediaComp.

You'll need the pixels extension to get the X and Y of the pixel.
Attachments
pixelsMorev2.gp
(3.74 KiB) Downloaded 65 times
removeRed-v2.gpp
(193.74 KiB) Downloaded 57 times

JohnM
Posts: 364
Joined: Sep 11th, '15, 14:42

Re: Red Eye Removal

Post by JohnM » Feb 10th, '16, 20:28

Cool! It seems like magic!

When you zoom in, you can see that the reflection in the eyes still has some red in it. One might imagine an extension of this that finds the reflections and maps the color to a shade of gray, keeping the same brightness values. This would be a second test, after turning the bright red pixels to black.

I'm not sure how the result would look; let me know if you try it.

Post Reply