Image.unsharpMask

Sharpens an image. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and unsharpMask selects a suitable radius for you.

class Image
void
unsharpMask
(
double radius = 0
,
double sigma = 1
,
double amount = 1
,
double threshold = 0.05
,)

Parameters

radius double

The radius of the Gaussian operator.

sigma double

The standard deviation of the Gaussian operator.

amount double

The percentage of the blurred image to be added to the receiver, specified as a fraction between 0 and 1.0. A good starting value is 1.0

threshold double

The threshold needed to apply the amount, specified as a fraction between 0 and 1.0.

channel ChannelType

The channels to sharpen.

Meta