public class Convolution extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
Convolution()
Initialize a new instance of the Convolution class.
|
Convolution(int[][] kernel)
Initialize a new instance of the Convolution class.
|
Convolution(int[][] kernel,
boolean replicate)
Initialize a new instance of the Convolution class.
|
Convolution(int[][] kernel,
int division)
Initialize a new instance of the Convolution class.
|
Convolution(int[][] kernel,
int division,
boolean replicate)
Initialize a new instance of the Convolution class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
int[][] |
getKernel()
Structuring element.
|
boolean |
isReplicate()
Verify if needs replicate pixels when is out of border.
|
void |
setDivision(int division)
Sets division.
|
void |
setKernel(int[][] kernel)
Structuring element.
|
void |
setReplicate(boolean replicate)
Replicate pixels out of border.
|
public Convolution()
public Convolution(int[][] kernel)
kernel - Structuring element.public Convolution(int[][] kernel,
boolean replicate)
kernel - Structuring element.replicate - Replicate pixels out of border.public Convolution(int[][] kernel,
int division)
kernel - Structuring element.division - Divides the result of convolution.public Convolution(int[][] kernel,
int division,
boolean replicate)
kernel - Structuring element.division - Divides the result of convolution.replicate - Replicate pixels out of border.public int[][] getKernel()
public void setKernel(int[][] kernel)
kernel - Structuring element.public void setDivision(int division)
division - Division.public boolean isReplicate()
public void setReplicate(boolean replicate)
replicate - Replicate.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.