ImageEn, unit imageenproc

TImageEnProc.UnsharpMask

TImageEnProc.UnsharpMask


Declaration

procedure UnsharpMask(Radius: Double = 4.0; Amount: Double = 1.0; Threshold: Double = 0.05);


Description

Apply a gaussian blur to the image.
Unlike Blur. UnsharpMask() only "blurs" the areas (pixels) which are sharper (decided by the threshold parameter).

Parameter Description
Radius Radius of the gaussian blur matrix (> 1)
Amount Difference between original and blurred image (0.0 to 5.0)
Threshold Threshold of maximum luminosity to apply the effect (0.0 to 1.0)

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 iermUnsharpen
- If the image PixelFormat is not ie24RGB, it will be converted


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

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

  

// Apply a gaussian blur to the image
ImageEnView1.Proc.UnsharpMask();