# ConvolutionKernel class

Namespace: [Grasshopper2.Imaging.Shaders](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.shaders.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class ConvolutionKernel
```

Represents a custom convolution kernel.

## Properties

- [Height](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/height.md): Gets the full height of the kernel.
- [Inverse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/inverse.md): Gets the inverse of all cells in the kernel.
- [RadiusX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/radiusx.md): Gets the radius in the X direction. This is identical to the (Width - 1) / 2.
- [RadiusY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/radiusy.md): Gets the radius in the Y direction. This is identical to the (Height - 1) / 2.
- [Total](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/total.md): Gets the total weight of all cells in the kernel.
- [Width](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/width.md): Gets the full width of the kernel.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/item.md): Gets the weight of the specified cell.

## Methods

- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/create.md): (2 overloads, static) Create a convolution kernel from a nested array.
- [CreateBlockBlur](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createblockblur.md): (static) Create a block blur kernel.
- [CreateConeBlur](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createconeblur.md): (static) Create a conical blur kernel.
- [CreateDiscBlur](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/creatediscblur.md): (static) Create a circular blur kernel.
- [CreateEdgeDetectOrthogonal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createedgedetectorthogonal.md): (static) Creates a standard 3x3 edge detection kernel for horizontal and vertical edges.
- [CreateEdgeDetectRadial](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createedgedetectradial.md): (static) Creates a standard 3x3 edge detection kernel for all edges.
- [CreateEmboss](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createemboss.md): (static) Creates a standard 3x3 embossing kernel.
- [CreateGaussianBlur](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/creategaussianblur.md): (static) Create a standard 3x3 gaussian blur kernel.
- [CreateIdentity](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createidentity.md): (static) Create the 3x3 identity kernel.
- [CreateLaplacian](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createlaplacian.md): (static) Create a standard 3x3 Laplacian kernel.
- [CreateSharpen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createsharpen.md): (static) Creates a standard 3x3 sharpen kernel.
- [CreateSobelHorizontal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createsobelhorizontal.md): (static) Create a sobel edge operator kernel.
- [CreateSobelVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createsobelvertical.md): (static) Create a sobel edge operator kernel.
- [CreateUnsharp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/createunsharp.md): (static) Creates a standard 5x5 unsharp kernel.
- [Normalise](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/normalise.md): Normalise this kernel.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.convolutionkernel/tostring.md): Returns a string that represents the current object.
