ConvolutionFilterOptions

Inheritance: java.lang.Object, com.aspose.imaging.imagefilters.filteroptions.FilterOptionsBase

All Implemented Interfaces: com.aspose.internal.imagefilters.convolution.IConvolutionKernel

public class ConvolutionFilterOptions extends FilterOptionsBase implements IConvolutionKernel

The convolution filter options.

Constructors

ConstructorDescription
ConvolutionFilterOptions(double[][] kernel)Initializes a new instance of the ConvolutionFilterOptions class with factor == 1 and bias == 0.
ConvolutionFilterOptions(double[][] kernel, double factor)Initializes a new instance of the ConvolutionFilterOptions class with bias == 0.
ConvolutionFilterOptions(double[][] kernel, double factor, int bias)Initializes a new instance of the ConvolutionFilterOptions class.

Methods

MethodDescription
getKernel()Gets the kernel.
getFactor()Gets the factor.
setFactor(double value)Sets the factor.
getBias()Gets the bias.
setBias(int value)Sets the bias.

ConvolutionFilterOptions(double[][] kernel)

public ConvolutionFilterOptions(double[][] kernel)

Initializes a new instance of the ConvolutionFilterOptions class with factor == 1 and bias == 0.

Parameters:

ParameterTypeDescription
kerneldouble[][]The convolution kernel for X-axis direction.

ConvolutionFilterOptions(double[][] kernel, double factor)

public ConvolutionFilterOptions(double[][] kernel, double factor)

Initializes a new instance of the ConvolutionFilterOptions class with bias == 0.

Parameters:

ParameterTypeDescription
kerneldouble[][]The convolution kernel for X-axis direction.
factordoubleThe factor.

ConvolutionFilterOptions(double[][] kernel, double factor, int bias)

public ConvolutionFilterOptions(double[][] kernel, double factor, int bias)

Initializes a new instance of the ConvolutionFilterOptions class.

Parameters:

ParameterTypeDescription
kerneldouble[][]The convolution kernel for X-axis direction.
factordoubleThe factor.
biasintThe bias value.

getKernel()

public double[][] getKernel()

Gets the kernel.

Returns: double[][] - the kernel.

getFactor()

public final double getFactor()

Gets the factor.

Returns: double - the factor.

setFactor(double value)

public final void setFactor(double value)

Sets the factor.

Parameters:

ParameterTypeDescription
valuedoublethe factor.

getBias()

public final int getBias()

Gets the bias.

Value: The bias.

Returns: int - the bias.

setBias(int value)

public final void setBias(int value)

Sets the bias.

Value: The bias.

Parameters:

ParameterTypeDescription
valueintthe bias.