Browse Source

Add sharpen overloads

Former-commit-id: 6d3e173bdfc0ca00998c7b97aa4693733355ce22
Former-commit-id: 3a4437ebf245b6d9aa9d79c14f6a509c290b08c1
Former-commit-id: bac9689e40181c18f9b13d553510eb6a6765ea7b
pull/17/head
James Jackson-South 10 years ago
parent
commit
c5f1348876
  1. 28
      src/ImageProcessor/Filters/Convolution/GuassianSharpen.cs

28
src/ImageProcessor/Filters/Convolution/GuassianSharpen.cs

@ -44,6 +44,34 @@ namespace ImageProcessor.Filters
this.sigma = sigma;
}
/// <summary>
/// Initializes a new instance of the <see cref="GuassianSharpen"/> class.
/// </summary>
/// <param name="radius">
/// The 'radius' value representing the size of the area to sample.
/// </param>
public GuassianSharpen(int radius)
{
this.kernelSize = (radius * 2) + 1;
this.sigma = radius;
}
/// <summary>
/// Initializes a new instance of the <see cref="GuassianSharpen"/> class.
/// </summary>
/// <param name="sigma">
/// The 'sigma' value representing the weight of the sharpen.
/// </param>
/// <param name="radius">
/// The 'radius' value representing the size of the area to sample.
/// This should be at least twice the sigma value.
/// </param>
public GuassianSharpen(float sigma, int radius)
{
this.kernelSize = (radius * 2) + 1;
this.sigma = sigma;
}
/// <inheritdoc/>
public override float[,] KernelX => this.kernelX;

Loading…
Cancel
Save