Soften node
This documentation is for version 4.0 of Soften (net.sf.cimg.CImgSoften).
Description
Soften the input stream by reducing its Laplacian.
The effects subtracts the Laplacian (as computed by the Laplacian plugin) times the ‘Amount’ parameter from the input stream.
Uses the ‘vanvliet’ and ‘deriche’ functions from the CImg library.
CImg is a free, opensource library distributed under the CeCILLC (close to the GNU LGPL) or CeCILL (compatible with the GNU GPL) licenses. It can be used in commercial applications (see http://cimg.eu).
Inputs
Input 
Description 
Optional 

Source 
No 

Mask 
Yes 
Controls
Parameter / script name 
Type 
Default 
Function 

Amount / 
Double 
0.5 
Amount of softening to apply. 
Size / 
Double 
x: 3 y: 3 
Size (diameter) of the filter kernel, in pixel units (>=0). The standard deviation of the corresponding Gaussian is size/2.4. No blur is applied if size < 0.24 (Gaussian and quasiGaussian) or <= 1 (box, triangle and quadratic). 
Uniform / 
Boolean 
Off 
Apply the same amount of blur on X and Y. 
Filter / 
Choice 
Gaussian 
Bluring filter. The quasiGaussian filter should be appropriate in most cases. The Gaussian filter is more isotropic (its impulse response has rotational symmetry), but slower.
QuasiGaussian (quasigaussian): QuasiGaussian filter (0order recursive Deriche filter, faster)  IIR (infinite support / impulsional response).
Gaussian (gaussian): Gaussian filter (Van Vliet recursive Gaussian filter, more isotropic, slower)  IIR (infinite support / impulsional response).
Box (box): Box filter  FIR (finite support / impulsional response).
Triangle (triangle): Triangle/tent filter  FIR (finite support / impulsional response).
Quadratic (quadratic): Quadratic filter  FIR (finite support / impulsional response).

(Un)premult / 
Boolean 
Off 
Divide the image by the alpha channel before processing, and remultiply it afterwards. Use if the input images are premultiplied. 
Invert Mask / 
Boolean 
Off 
When checked, the effect is fully applied where the mask is 0. 
Mix / 
Double 
1 
Mix factor between the original and the transformed image. 