ImageEn, unit imageenproc

TImageEnProc.AutoSharp

TImageEnProc.AutoSharp


Declaration

procedure AutoSharp(Intensity: Integer = 68; Rate: Double = 0.035);


Description

Automatically increase image sharpness by enhancing the contours of detected objects.
AutoSharp uses a using a Shen Castan edge detector to detect borders, blurs the edge and then performs a blur subtraction. It is more complex sharpening operation than Sharpen.

Also see: Comparison of smoothing, blurring and noise reduction methods

Note:
A UI for this is available to your users in the Image Processing dialog
Also available as a RetouchTool by setting MouseInteractGeneral to [miRetouchTool] and RetouchMode to iermAutoSharpen
If the image PixelFormat is not ie24RGB, it will be converted

Parameter Description
Intensity The effect intensity. Values: 0 to 100, Default 68
Rate The borders detection rate. Values: 0.0 to 1.0, Default 0.035


Demos

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


Example

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

  

// Automatically increase image sharpness by enhancing the contours of detected objects
ImageEnView1.Proc.AutoSharp();