Class GaussianSharpenProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Convolution
- Assembly
- SixLabors.ImageSharp.dll
Defines Gaussian sharpening by a (Sigma, Radius) pair.
public sealed class GaussianSharpenProcessor : IImageProcessor
- Inheritance
-
GaussianSharpenProcessor
- Implements
- Inherited Members
Constructors
GaussianSharpenProcessor()
Initializes a new instance of the GaussianSharpenProcessor class.
public GaussianSharpenProcessor()
GaussianSharpenProcessor(int)
Initializes a new instance of the GaussianSharpenProcessor class.
public GaussianSharpenProcessor(int radius)
Parameters
radius
intThe 'radius' value representing the size of the area to sample.
GaussianSharpenProcessor(float)
Initializes a new instance of the GaussianSharpenProcessor class.
public GaussianSharpenProcessor(float sigma)
Parameters
sigma
floatThe 'sigma' value representing the weight of the blur.
GaussianSharpenProcessor(float, BorderWrappingMode, BorderWrappingMode)
Initializes a new instance of the GaussianSharpenProcessor class.
public GaussianSharpenProcessor(float sigma, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
sigma
floatThe 'sigma' value representing the weight of the blur.
borderWrapModeX
BorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.
borderWrapModeY
BorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.
GaussianSharpenProcessor(float, int)
Initializes a new instance of the GaussianSharpenProcessor class.
public GaussianSharpenProcessor(float sigma, int radius)
Parameters
sigma
floatThe 'sigma' value representing the weight of the blur.
radius
intThe 'radius' value representing the size of the area to sample. This should be at least twice the sigma value.
GaussianSharpenProcessor(float, int, BorderWrappingMode, BorderWrappingMode)
Initializes a new instance of the GaussianSharpenProcessor class.
public GaussianSharpenProcessor(float sigma, int radius, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
sigma
floatThe 'sigma' value representing the weight of the blur.
radius
intThe 'radius' value representing the size of the area to sample. This should be at least twice the sigma value.
borderWrapModeX
BorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.
borderWrapModeY
BorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.
Fields
DefaultSigma
The default value for Sigma.
public const float DefaultSigma = 3
Field Value
Properties
BorderWrapModeX
Gets the BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.
public BorderWrappingMode BorderWrapModeX { get; }
Property Value
BorderWrapModeY
Gets the BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.
public BorderWrappingMode BorderWrapModeY { get; }
Property Value
Radius
Gets the radius defining the size of the area to sample.
public int Radius { get; }
Property Value
Sigma
Gets the sigma value representing the weight of the blur
public float Sigma { get; }
Property Value
Methods
CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configuration
Configurationsource
Image<TPixel>sourceRectangle
Rectangle
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixel