org.sunflow.core.filter
Class BlackmanHarrisFilter
java.lang.Object
org.sunflow.core.filter.BlackmanHarrisFilter
- Filter
public class BlackmanHarrisFilter
extends java.lang.Object
float | get(float x, float y) - Get value of the filter at offset (x, y).
|
float | getSize() - Width in pixels of the filter extents.
|
BlackmanHarrisFilter
public BlackmanHarrisFilter(float size)
get
public float get(float x,
float y)
Get value of the filter at offset (x, y). The filter should never be
called with values beyond its extents but should return 0 in those cases
anyway.
- get in interface Filter
x
- x offset in pixelsy
- y offset in pixels
- value of the filter at the specified location
getSize
public float getSize()
Width in pixels of the filter extents. The filter will be applied to the
range of pixels within a box of +/- getSize() / 2
around
the center of the pixel.
- getSize in interface Filter