UnsharpMask creates a filter that sharpens an image. The sigma parameter is used in a gaussian function and affects the radius of effect. Sigma must be positive. Sharpen radius roughly equals 3 * sigma. The amount parameter controls how much darker and how much lighter the edge borders become. Typically between 0.5 and 1.5. The thresold parameter controls the minimum brightness change that will be sharpened. Typically between 0 and 0.05.


g := gift.New(
	gift.UnsharpMask(1.0, 1.0, 0.0),
dst := image.NewRGBA(g.Bounds(src.Bounds()))
g.Draw(dst, src)

UnsharpMask is referenced in 2 repositories