Class ConvolutionExtensions
- Namespace
- SixLabors.ImageSharp.Processing.Extensions.Convolution
- Assembly
- SixLabors.ImageSharp.dll
Defines general convolution extensions to apply on an Image using Mutate/Clone.
public static class ConvolutionExtensions
- Inheritance
-
ConvolutionExtensions
- Inherited Members
Methods
Convolve(IImageProcessingContext, DenseMatrix<float>)
Applies a convolution filter to the image.
public static IImageProcessingContext Convolve(this IImageProcessingContext source, DenseMatrix<float> kernelXY)
Parameters
sourceIImageProcessingContextThe current image processing context.
kernelXYDenseMatrix<float>The convolution kernel to apply.
Returns
Convolve(IImageProcessingContext, DenseMatrix<float>, bool)
Applies a convolution filter to the image.
public static IImageProcessingContext Convolve(this IImageProcessingContext source, DenseMatrix<float> kernelXY, bool preserveAlpha)
Parameters
sourceIImageProcessingContextThe current image processing context.
kernelXYDenseMatrix<float>The convolution kernel to apply.
preserveAlphaboolWhether the convolution filter is applied to alpha as well as the color channels.
Returns
Convolve(IImageProcessingContext, DenseMatrix<float>, bool, BorderWrappingMode, BorderWrappingMode)
Applies a convolution filter to the image.
public static IImageProcessingContext Convolve(this IImageProcessingContext source, DenseMatrix<float> kernelXY, bool preserveAlpha, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
sourceIImageProcessingContextThe current image processing context.
kernelXYDenseMatrix<float>The convolution kernel to apply.
preserveAlphaboolWhether the convolution filter is applied to alpha as well as the color channels.
borderWrapModeXBorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.
borderWrapModeYBorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.
Returns
Convolve(IImageProcessingContext, Rectangle, DenseMatrix<float>)
Applies a convolution filter to the image.
public static IImageProcessingContext Convolve(this IImageProcessingContext source, Rectangle rectangle, DenseMatrix<float> kernelXY)
Parameters
sourceIImageProcessingContextThe current image processing context.
rectangleRectangleThe rectangle structure that specifies the portion of the image object to alter.
kernelXYDenseMatrix<float>The convolution kernel to apply.
Returns
Convolve(IImageProcessingContext, Rectangle, DenseMatrix<float>, bool)
Applies a convolution filter to the image.
public static IImageProcessingContext Convolve(this IImageProcessingContext source, Rectangle rectangle, DenseMatrix<float> kernelXY, bool preserveAlpha)
Parameters
sourceIImageProcessingContextThe current image processing context.
rectangleRectangleThe rectangle structure that specifies the portion of the image object to alter.
kernelXYDenseMatrix<float>The convolution kernel to apply.
preserveAlphaboolWhether the convolution filter is applied to alpha as well as the color channels.
Returns
Convolve(IImageProcessingContext, Rectangle, DenseMatrix<float>, bool, BorderWrappingMode, BorderWrappingMode)
Applies a convolution filter to the image.
public static IImageProcessingContext Convolve(this IImageProcessingContext source, Rectangle rectangle, DenseMatrix<float> kernelXY, bool preserveAlpha, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
sourceIImageProcessingContextThe current image processing context.
rectangleRectangleThe rectangle structure that specifies the portion of the image object to alter.
kernelXYDenseMatrix<float>The convolution kernel to apply.
preserveAlphaboolWhether the convolution filter is applied to alpha as well as the color channels.
borderWrapModeXBorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.
borderWrapModeYBorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.