Package org.sunflow.core.filter
Class BoxFilter
java.lang.Object
org.sunflow.core.filter.BoxFilter
- All Implemented Interfaces:
Filter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BoxFilter
public BoxFilter()
-
-
Method Details
-
getSize
public float getSize()Description copied from interface:Filter
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. -
get
public float get(float x, float y) Description copied from interface:Filter
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.
-