-
public final class ToonFilterTransformation extends GPUFilterTransformation
Creates a cartoon filter effect.
-
-
Constructor Summary
Constructors Constructor Description ToonFilterTransformation(Context context, Float threshold, Float quantizationLevels)
-
Method Summary
Modifier and Type Method Description StringgetCacheKey()GPUImageFiltercreateFilter()Create the GPUImageFilter to apply to this Transformation -
Methods inherited from class com.commit451.coiltransformations.gpu.ToonFilterTransformation
transform -
Methods inherited from class com.commit451.coiltransformations.gpu.GPUFilterTransformation
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ToonFilterTransformation
ToonFilterTransformation(Context context, Float threshold, Float quantizationLevels)
- Parameters:
context- contextthreshold- The threshold at which to apply the edges, default of 0.2f.quantizationLevels- The levels of quantization for the posterization of colors within the scene, default of 10.0f.
-
-
Method Detail
-
getCacheKey
String getCacheKey()
-
createFilter
GPUImageFilter createFilter()
Create the GPUImageFilter to apply to this Transformation
-
-
-
-