ImageEn, unit imageenproc

TImageEnProc.AutoImageEnhance1

TImageEnProc.AutoImageEnhance1


Declaration

procedure AutoImageEnhance1(SubsampledSize: Integer = 60; Slope: Integer = 20; Cut: Integer = 25; Neighbour: Integer = 2);


Description

ImageEn offers a selection of functions to automatically enhance an image. AutoImageEnhance1 performs a series of complex operations to improve the contrast and colors in the image.

Parameter Description
SubsampledSize For better performance operations are performed on a subsampled image. This parameter specifies the image width (default 60)
Slope The core function slope (in degrees) which will affect the contrast. Allowed values: 0 to 90, default 20
Cut The code function range which will affect the contrast. Allowed values are 0 to 100, default 25
Neighbour When the subsampled image is used to change the full size image, Neighbour specifies the window size of the conversion. High values slow down processing but produce better results. Default is 2

Notes:
- 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

- AutoImageEnhance2
- AutoImageEnhance3
- WallisFilter