ImageEn, unit imageenproc

TImageEnProc.AutoImageEnhance2

TImageEnProc.AutoImageEnhance2


Declaration

procedure AutoImageEnhance2(ScaleCount: Integer = 3; ScaleCurve: Integer = 2; Variance: Double = 1.8; ScaleHigh: Integer = 200; Luminance: Boolean = True);


Description

ImageEn offers a selection of functions to automatically enhance an image. AutoImageEnhance2 uses a "Retinex" algorithm to simulate how humans see the world.

Parameter Description
ScaleCount The algorithm is applied to different scales of the image. This parameter specifies the number of scales. Default 3
ScaleCurve Specifies how to build the size of each scale. Allowed values 0..2. Default 2
Variance The output variance. Default 1.8
ScaleHigh Allowed values from 16 to 250. Default 200
Luminance If true the algorithm is applied only to luminance (luminosity) channel, so the algorithm doesn't touch colors

Note:
 The default parameters will generally offer an agreeable result
 A UI for this is available to your users in the Image Processing dialog
 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
 AutoImageEnhance3
 WallisFilter