Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 220.127.116.11 (18.104.22.168)
public class Morph : BaseInPlaceFilter2
The filter combines two images by taking specified percent of pixels' intensities from source image and the rest from overlay image. For example, if the source percent value is set to 0.8, then each pixel of the result image equals to 0.8 * source + 0.2 * overlay, where source and overlay are corresponding pixels' values in source and overlay images.
The filter accepts 8 bpp grayscale and 24 bpp color images for processing.
// create filter Morph filter = new Morph( overlayImage ); filter.SourcePercent = 0.75; // apply the filter Bitmap resultImage = filter.Apply( sourceImage );