public class FTriangleFilter extends Object implements ImageProcessor<FImage>
| Constructor and Description |
|---|
FTriangleFilter(int filterWidth,
int filterHeight)
Construct with the given dimensions.
|
FTriangleFilter(int filterWidth,
int filterHeight,
boolean zeropad)
Construct with the given dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
static float[] |
createKernel1D(int width)
Construct a triangular kernel of the given size.
|
void |
processImage(FImage image) |
public FTriangleFilter(int filterWidth, int filterHeight, boolean zeropad)
filterWidth - width of filterfilterHeight - height of filterzeropad - zero-pad off the edge of the image if true; duplicate edge
value otherwise.public FTriangleFilter(int filterWidth, int filterHeight)
filterWidth - half-width of filterfilterHeight - half-height of filterpublic void processImage(FImage image)
processImage in interface ImageProcessor<FImage>public static float[] createKernel1D(int width)
width - the kernel half-width