public class HeightMapFilter
extends java.lang.Object
Only used for smoothing (with a GaussianKernel).
Constructor and Description |
---|
HeightMapFilter(int kernelWidth,
int kernelHeight,
float[] kernelData)
Construct the HeightMapFilter object.
|
HeightMapFilter(Kernel kernel)
Construct the HeightMapFilter object.
|
Modifier and Type | Method and Description |
---|---|
int[] |
filter(int[] inData,
int width,
int height)
Filter with a 2D kernel.
|
Kernel |
getKernel()
Get the kernel.
|
void |
setKernel(Kernel kernel)
Set the kernel.
|
public HeightMapFilter(Kernel kernel)
kernel
- the kernelpublic HeightMapFilter(int kernelWidth, int kernelHeight, float[] kernelData)
kernelWidth
- the widthkernelHeight
- the heightkernelData
- the datapublic Kernel getKernel()
public void setKernel(Kernel kernel)
kernel
- the kernelpublic int[] filter(int[] inData, int width, int height)
inData
- the datawidth
- the widthheight
- the height