Selection through fuzz? Red-eye removal.
Posted: 2011-09-12T05:24:18-07:00
Hello!
I have stumbled upon a particular problem which I seem to be unable to solve. My goal is to remove red-eyes through a web interface.
My current solution:
1. I am trying to remove red eyes from photographs via a web interface.
2. The user chooses a rectangular region where the eyes are.
3. From a standard red I've aquired from varius red-eye photograhp and using fuzzy I am able to paint them black.
This solution is not sufficient, so here's my next plan:
1. User select region
2. Select red-eye through standard red-eye color.
3. Expand this selected region by a few pixels and everything in it.
4. Reduce the Red-channel
However there's a great problem with step 2 and 3. This has to happen automagically with no input from the user, and I can't seem to find the appropriate functions for this to be done.
Again, if you have any input on how to solve it, the logical steps that are needed to be taken I would be very thankful.
(I am not expecting, nor do I want, a complete solution. I am here to learn and develop! )
Thank you
I have stumbled upon a particular problem which I seem to be unable to solve. My goal is to remove red-eyes through a web interface.
Code: Select all
convert.exe before.jpg -region "230x140+60+130" ^ // input from user
-fill black ^
-fuzz 25%% ^
-opaque rgb("192","00","10") ^
after.jpg
1. I am trying to remove red eyes from photographs via a web interface.
2. The user chooses a rectangular region where the eyes are.
3. From a standard red I've aquired from varius red-eye photograhp and using fuzzy I am able to paint them black.
This solution is not sufficient, so here's my next plan:
1. User select region
2. Select red-eye through standard red-eye color.
3. Expand this selected region by a few pixels and everything in it.
4. Reduce the Red-channel
However there's a great problem with step 2 and 3. This has to happen automagically with no input from the user, and I can't seem to find the appropriate functions for this to be done.
Again, if you have any input on how to solve it, the logical steps that are needed to be taken I would be very thankful.
(I am not expecting, nor do I want, a complete solution. I am here to learn and develop! )
Thank you