Autor Beitrag
webbi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 142

Win XP Pro SP2, Debian GNU/Linux 2.6
D5 Pro, D7 Pro, BDS2006, Kylix3, MS-VS 2005
BeitragVerfasst: Mo 25.04.05 16:12 
Hallo!

In jedem guten Grafik-Programm kann man den Gamma-Wert eines Bildes ändern (0,01-7,99)

Ich müsste ein Delphi-Programm schreiben, das das kann. Habe schon im Forum und bei Google gesucht aber leider nix gefunden...

Hat jemand eine Idee?

mfG

Mario
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 25.04.05 16:39 
Die Gamma-Anpassung eines Bildes wird zur Aufhellung (Gamma>1) oder abdunklung (<1) verwendet und kann über die Exponential-Funktion

P' = 255 * ((P/255)^Gamma)

abgebildet werden.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
webbi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 142

Win XP Pro SP2, Debian GNU/Linux 2.6
D5 Pro, D7 Pro, BDS2006, Kylix3, MS-VS 2005
BeitragVerfasst: Mo 25.04.05 17:32 
Gibt es da keine fertige funktion?


Zuletzt bearbeitet von webbi am Di 26.04.05 17:22, insgesamt 1-mal bearbeitet
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mo 25.04.05 18:40 
also etwas selbstständigkeit muss schon sein.
alles was du machen must ist doch die formel in eine einfache funktion umzuschreiben.
mehr als 20zeilen werden es wohl IMHO nicht werden :D

_________________
Patrick
im zweifelsfall immer das richtige tun!!!