ImageEn, unit imageenproc

TImageEnProc.AutoImageEnhance3

TImageEnProc.AutoImageEnhance3


Declaration

procedure AutoImageEnhance3(Gamma: Double = 0.35; Saturation: Integer = 80);


Description

Enhance luminosity by applying a local adaptation tone mapping algorithm (thanks to Prof. Irwin Scollar).

Parameter Description
Gamma Adjust the resulting luminosity. Value must be more than 0. Default: 0.35
Saturation Adjust the color saturation. Allowed values: -100 to 100. Default: 80

Note: If the image PixelFormat is not ie24RGB, it will be converted


Demos

Demo  Demos\ImageEditing\AutoEnhance\AutoAdjust.dpr
Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Comparison of Auto-Enhancement Methods

// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  


// Improve the contrast and colors in the image
ImageEnView1.Proc.AutoImageEnhance1();

  


// Use a "Retinex" algorithm to simulate how humans see the world
ImageEnView1.Proc.AutoImageEnhance2();

  


// Enhance luminosity by applying a local adaptation tone mapping algorithm
ImageEnView1.Proc.AutoImageEnhance3();

  


// Apply a Wallis Filter to the image
ImageEnView1.Proc.WallisFilter();

  


See Also

AutoImageEnhance1
AutoImageEnhance2
WallisFilter