Class GaussianSharpenProcessor
Defines Gaussian sharpening by a (Sigma, Radius) pair.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class GaussianSharpenProcessor : IImageProcessor
Constructors
| Edit this page View SourceGaussianSharpenProcessor()
Initializes a new instance of the GaussianSharpenProcessor class.
Declaration
public GaussianSharpenProcessor()
GaussianSharpenProcessor(int)
Initializes a new instance of the GaussianSharpenProcessor class.
Declaration
public GaussianSharpenProcessor(int radius)
Parameters
Type | Name | Description |
---|---|---|
int | radius | The 'radius' value representing the size of the area to sample. |
GaussianSharpenProcessor(float)
Initializes a new instance of the GaussianSharpenProcessor class.
Declaration
public GaussianSharpenProcessor(float sigma)
Parameters
Type | Name | Description |
---|---|---|
float | sigma | The 'sigma' value representing the weight of the blur. |
GaussianSharpenProcessor(float, BorderWrappingMode, BorderWrappingMode)
Initializes a new instance of the GaussianSharpenProcessor class.
Declaration
public GaussianSharpenProcessor(float sigma, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
Type | Name | Description |
---|---|---|
float | sigma | The 'sigma' value representing the weight of the blur. |
BorderWrappingMode | borderWrapModeX | The BorderWrappingMode to use when mapping the pixels outside of the border, in X direction. |
BorderWrappingMode | borderWrapModeY | The 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.
Declaration
public GaussianSharpenProcessor(float sigma, int radius)
Parameters
Type | Name | Description |
---|---|---|
float | sigma | The 'sigma' value representing the weight of the blur. |
int | radius | The '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.
Declaration
public GaussianSharpenProcessor(float sigma, int radius, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
Type | Name | Description |
---|---|---|
float | sigma | The 'sigma' value representing the weight of the blur. |
int | radius | The 'radius' value representing the size of the area to sample. This should be at least twice the sigma value. |
BorderWrappingMode | borderWrapModeX | The BorderWrappingMode to use when mapping the pixels outside of the border, in X direction. |
BorderWrappingMode | borderWrapModeY | The BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction. |
Fields
| Edit this page View SourceDefaultSigma
The default value for Sigma.
Declaration
public const float DefaultSigma = 3
Field Value
Type | Description |
---|---|
float |
Properties
| Edit this page View SourceBorderWrapModeX
Gets the BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.
Declaration
public BorderWrappingMode BorderWrapModeX { get; }
Property Value
Type | Description |
---|---|
BorderWrappingMode |
BorderWrapModeY
Gets the BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.
Declaration
public BorderWrappingMode BorderWrapModeY { get; }
Property Value
Type | Description |
---|---|
BorderWrappingMode |
Radius
Gets the radius defining the size of the area to sample.
Declaration
public int Radius { get; }
Property Value
Type | Description |
---|---|
int |
Sigma
Gets the sigma value representing the weight of the blur
Declaration
public float Sigma { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
Image<TPixel> | source | The source image. Cannot be null. |
Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
Type | Description |
---|---|
IImageProcessor<TPixel> |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |