---
title: "UnsharpMask Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_UnsharpMask.htm
product: "Graphics Mill"
---

# UnsharpMask Class
 
Increases a sharpness of an image by using the *unsharp mask* technique.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
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](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_UnsharpMask_Radius.htm.md) 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](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_UnsharpMask_Threshold.htm.md) property, algorithm adds this N percents of this difference to original pixel (N is set by [Amount](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_UnsharpMask_Amount.htm.md) 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](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Sharpen.htm.md) transform which is less flexible, but much more easy-to-use.
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.PipelineElement](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PipelineElement.htm.md)
        - [Aurigma.GraphicsMill.Transforms.Transform](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Transform.htm.md)
            - [Aurigma.GraphicsMill.Transforms.MaskTransform](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_MaskTransform.htm.md)
                - Aurigma.GraphicsMill.Transforms.UnsharpMask
 
## 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

- [UnsharpMask Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Transforms_UnsharpMask.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
