public class ConvolutionFilterOptions extends FilterOptionsBase implements com.aspose.internal.imagefilters.convolution.IConvolutionKernel
The convolution filter options.
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
int |
getBias()
Gets the bias.
|
double |
getFactor()
Gets the factor.
|
double[][] |
getKernel()
Gets the kernel.
|
void |
setBias(int value)
Sets the bias.
|
void |
setFactor(double value)
Sets the factor.
|
public ConvolutionFilterOptions(double[][] kernel)
Initializes a new instance of the ConvolutionFilterOptions class with factor == 1 and bias == 0.
kernel - The convolution kernel for X-axis direction.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic ConvolutionFilterOptions(double[][] kernel,
double factor)
Initializes a new instance of the ConvolutionFilterOptions class with bias == 0.
kernel - The convolution kernel for X-axis direction.factor - The factor.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic ConvolutionFilterOptions(double[][] kernel,
double factor,
int bias)
Initializes a new instance of the ConvolutionFilterOptions class.
kernel - The convolution kernel for X-axis direction.factor - The factor.bias - The bias value.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic double[][] getKernel()
Gets the kernel.
getKernel in interface com.aspose.internal.imagefilters.convolution.IKernel<double[][]>public final double getFactor()
Gets the factor.
public final void setFactor(double value)
Sets the factor.
value - the factor.public final int getBias()
Gets the bias.
Value: The bias.public final void setBias(int value)
Sets the bias.
Value: The bias.value - the bias.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.