Browse Source

Add sharpen overloads

Former-commit-id: 82794ccf253687d252b9433159e69b2f7b2d78d2
Former-commit-id: 817e2f7b9864179f768cef63e0724af810eeec0d
Former-commit-id: fad4ba746a8acc81a2d154804ace87a02be1414a
af/merge-core
James Jackson-South 11 years ago
parent
commit
12e21f2c94
  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