Package arc.fx.filters
Class Convolve2dFilter
java.lang.Object
arc.fx.filters.MultipassVfxFilter
arc.fx.filters.Convolve2dFilter
- All Implemented Interfaces:
Disposable
Encapsulates a separable 2D convolution kernel filter
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
final float[]
final float[]
final int
final float[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases all resources of this object.void
render
(PingPongBuffer buffer) void
Methods inherited from class arc.fx.filters.MultipassVfxFilter
resize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.util.Disposable
isDisposed
-
Field Details
-
radius
public final int radius -
length
public final int length -
weights
public final float[] weights -
offsetsHor
public final float[] offsetsHor -
offsetsVert
public final float[] offsetsVert -
hor
-
vert
-
-
Constructor Details
-
Convolve2dFilter
public Convolve2dFilter(int radius)
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:Disposable
Releases all resources of this object. -
setParams
public void setParams()- Specified by:
setParams
in classMultipassVfxFilter
- See Also:
-
render
- Specified by:
render
in classMultipassVfxFilter
-