TAMS / Java / Hades / applets: contents | previous | next | ||||
Hades Applets contents visual index introduction std_logic_1164 gatelevel circuits delay models flipflops adders and arithm... counters LFSR and selftest memories programmable logic state-machine editor misc. demos I/O and displays DCF-77 clock relays (switch-le... CMOS circuits (sw... RTLIB logic RTLIB registers Prima processor D*CORE MicroJava Pic16 cosimulation Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... color channels JPEG compres... Sobel filter Gauss filter resize rotate chessboard gamma correc... saturation chroma-keying chroma-keying purple fringing red-eye [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | Red-eye reduction
Circuit Description
An attempt at red-eye reduction.
We first try a combination of SelectRegion and InsideRangeFilter to create a mask of the red-eye regions. We append a GaussFilter to make the transition between detected red-eye iris and surroundings smoother. Note that a simple color-based approach is not enough for most images, because bright red colors will appear on several regions across the image. We then proceed to synthesize a brown iris and an almost black pupil as a replacement for the red iris. This is done with a RandomFilter set to the corresponding eye color (here, brown), and another GaussFilter in combination with another InsideRegionFilter to create the smaller pupils region. The original image minus the selected eyes regions is then merged with the synthesized eyes regions to give the output image. While the resulting output image is already much better than the original red-eye input image, current computer-graphics algorithms used to synthesize eyes are much more complex (employing up to 40 or 50 layers of semi-transparent objects in order to match a 'real' eye).
| |||
Print version | Run this demo in the Hades editor (via Java WebStart) | ||||
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German) | ||||
Impressum | http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/00-intro/02-imageprocessing/red-eye.html |