STK Graphics PrimitivesSend comments on this topic.
Kernel Property (IAgStkGraphicsConvolutionFilter)
See Also
Windows





Windows & Linux

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 * Kernel
);
[Java]
public AgSafeArray getKernel();
public void setKernel(
    AgSafeArray
);
[Python - STK API ]
@property
def Kernel(self) -> list:

@Kernel.setter
def Kernel(self, Kernel:list) -> None:

See Also

Example

Shows the format of the ConvolutionFilter's Kernel property.
[C#]
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]
Dim kernel As Array = New Object() {1, 1, 1, 1, 1, 1, _
	1, 1, 1}

convolutionFilter.Kernel = kernel
© 2024 Analytical Graphics, Inc. All Rights Reserved.