Class MedianBlurProcessor
Applies an median filter.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class MedianBlurProcessor : IImageProcessor
Constructors
| Edit this page View SourceMedianBlurProcessor(int, bool)
Initializes a new instance of the MedianBlurProcessor class.
Declaration
public MedianBlurProcessor(int radius, bool preserveAlpha)
Parameters
Type | Name | Description |
---|---|---|
int | radius | The 'radius' value representing the size of the area to filter over. |
bool | preserveAlpha | Whether the filter is applied to alpha as well as the color channels. |
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 |
PreserveAlpha
Gets a value indicating whether the filter is applied to alpha as well as the color channels.
Declaration
public bool PreserveAlpha { get; }
Property Value
Type | Description |
---|---|
bool |
Radius
Gets the size of the area to find the median of.
Declaration
public int Radius { get; }
Property Value
Type | Description |
---|---|
int |
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. |