Description
Gets or sets the convolution kernel of the filter. The array contains the 9 elements of the
Kernel of the convolution matrix. The elements are provided as the entire first row, followed by the entire second row, followed by the entire third row, each from left to right.
Property type
Read-write property
Syntax
[Visual Basic .NET] |
---|
Public Property Kernel() As System.Array
|
[C#] |
---|
public System.Array Kernel {get; set;}
|
[Managed C++] |
---|
public: __property System::Array^ get_Kernel(); public: __property void set_Kernel( System::Array ^ );
|
[Unmanaged C++] |
---|
public: HRESULT get_Kernel( SAFEARRAY ** ppRetVal ); public: HRESULT put_Kernel( SAFEARRAY * pNewKernel );
|
[Java] |
---|
public Object[] getKernel();public void setKernel( Object[] );
|
Example
Shows the format of the ConvolutionFilter's Kernel property.
[C#] | Copy Code |
---|
Array kernel = new object[] {
1, 1, 1,
1, 1, 1,
1, 1, 1
};
convolutionFilter.Kernel = kernel;
|
|
Shows the format of the ConvolutionFilter's Kernel property.
[Visual Basic .NET] | Copy Code |
---|
Dim kernel As Array = New Object() {1, 1, 1, 1, 1, 1, _ 1, 1, 1}
convolutionFilter.Kernel = kernel
|
|
See Also