ConvolutionFilterOptions
Contents
[
Hide
]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
Constructor | 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. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
kernel | double[][] | 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:
Parameter | Type | Description |
---|---|---|
kernel | double[][] | The convolution kernel for X-axis direction. |
factor | double | The 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:
Parameter | Type | Description |
---|---|---|
kernel | double[][] | The convolution kernel for X-axis direction. |
factor | double | The factor. |
bias | int | The 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:
Parameter | Type | Description |
---|---|---|
value | double | the 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:
Parameter | Type | Description |
---|---|---|
value | int | the bias. |