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 | Color saturation
Circuit Description
A demonstration of color saturation manipulation using the
SaturationFilter component.
The saturation filter uses one parameter
double RW = 0.3086; // or 0.299 for YIV values double RG = 0.6084; // or 0.587 for YIV values double RB = 0.0820; // or 0.114 for YIV values a = (1 - s) * RW + s; b = (1 - s) * RW; c = (1 - s) * RW; d = (1 - s) * RG; e = (1 - s) * RG + s; f = (1 - s) * RG; g = (1 - s) * RB; h = (1 - s) * RB; i = (1 - s) * RB + s; output_red = a*red + d*green + g*blue; output_green = b*red + e*green + h*blue; output_blue = c*red + f*green + i*blue; output_alpha = alpha; | |||
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/saturation.html |