public ProcessImage ( ImageFactory factory ) : Image | ||
factory | ImageFactory | The current instance of the |
return | Image |
/// <summary> /// Uses a Gaussian kernel to sharpen the current image. /// </summary> /// <param name="gaussianLayer"> /// The <see cref="T:ImageProcessor.Imaging.GaussianLayer"/> for applying sharpening and /// blurring methods to an image. /// </param> /// <returns> /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class. /// </returns> public ImageFactory GaussianSharpen(GaussianLayer gaussianLayer) { if (this.ShouldProcess) { GaussianSharpen gaussianSharpen = new GaussianSharpen { DynamicParameter = gaussianLayer }; this.Image = gaussianSharpen.ProcessImage(this); } return this; }
/// <summary> /// Uses a Gaussian kernel to sharpen the current image. /// <remarks> /// <para> /// The sigma and threshold values applied to the kernel are /// 1.4 and 0 respectively. /// </para> /// </remarks> /// </summary> /// <param name="size"> /// The size to set the Gaussian kernel to. /// </param> /// <returns> /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class. /// </returns> public ImageFactory GaussianSharpen(int size) { if (this.ShouldProcess && size > 0) { GaussianLayer layer = new GaussianLayer(size); GaussianSharpen gaussianSharpen = new GaussianSharpen { DynamicParameter = layer }; this.Image = gaussianSharpen.ProcessImage(this); } return this; }