UnsharpMask Class

Increases a sharpness of an image by using the unsharp mask technique.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class UnsharpMask : MaskTransform

Remarks

Unsharp mask is a wide-spread technique used by photographers to increase image sharpness even in precomputer times. The idea is to combine the image with the unfocused (blurred) version. This class provides the Radius property to tune the blur effect. During combining the algorithm calculates the difference between corresponding pixels of original and blurred image. If this difference is greater than value specified with Threshold property, algorithm adds this N percents of this difference to original pixel (N is set by Amount property). Otherwise no changes to original pixel is done. As blurred image differs from original ones mainly on the object edges, sharpening effect is achieved.

Using this technique is quite difficult to untrained user as it requires three non-intuitive parameters (amount, radius, and threshold). That's why if you want to provide user easy way to manipulate image sharpness, you can use Sharpen transform which is less flexible, but much more easy-to-use.

Inheritance Hierarchy

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference