In this cookbook we show how to make a new compound tool by grouping together a set of existing tools. The new tool sharpens an image with unsharp masking operation. The operation combines the original and a blurred image so that the outcome appears to be sharper than the original image.
Let us walk through the schema below top-down.
The test image originates from the virtual camera configured in Image Source.
The image is blurred slightly in Linear Filter Tool using Gaussian filter.
The original and the blurred images are weighted and added up in Add Images Tool. The weights are calculated in the script as described below.
Syncinput is only used for triggering the calculation. It can be connected to any output in the Image Source which emits a value on each image. For instance,
Image Countare such outputs. The parameters and the script code are shown below.
An example of Unsharp Masking operation is given below. Unsharp masking makes the boundaries of the letters more distinct.