ImageEn, unit imageenproc




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


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

- 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


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


// Use a "Retinex" algorithm to simulate how humans see the world


// Enhance luminosity by applying a local adaptation tone mapping algorithm


// Apply a Wallis Filter to the image


See Also

- AutoImageEnhance2
- AutoImageEnhance3
- WallisFilter