public class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic
Script.Builder, Script.FieldBase, Script.FieldID, Script.InvokeID, Script.KernelID, Script.LaunchOptions
bindAllocation, createFieldID, createInvokeID, createKernelID, forEach, forEach, forEach, forEach, invoke, invoke, isIncSupp, reduce, setIncSupp, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
public static ScriptIntrinsicConvolve3x3 create(RenderScript rs, Element e)
Element.U8(android.support.v8.renderscript.RenderScript)
, Element.U8_2(android.support.v8.renderscript.RenderScript)
, Element.U8_3(android.support.v8.renderscript.RenderScript)
, Element.U8_4(android.support.v8.renderscript.RenderScript)
,
Element.F32(android.support.v8.renderscript.RenderScript)
, Element.F32_2(android.support.v8.renderscript.RenderScript)
, Element.F32_3(android.support.v8.renderscript.RenderScript)
, and Element.F32_4(android.support.v8.renderscript.RenderScript)
.
The default coefficients are:
[ 0, 0, 0 ]
[ 0, 1, 0 ]
[ 0, 0, 0 ]
rs
- The RenderScript contexte
- Element type for intputs and outputspublic void setInput(Allocation ain)
ain
- The input allocation.public void setCoefficients(float[] v)
The convolve layout is:
[ 0, 1, 2 ]
[ 3, 4, 5 ]
[ 6, 7, 8 ]
v
- The array of coefficients to setpublic void forEach(Allocation aout)
aout
- Output allocation. Must match creation element
type.public void forEach(Allocation aout, Script.LaunchOptions opt)
aout
- Output allocation. Must match creation element
type.opt
- LaunchOptions for clippingpublic Script.KernelID getKernelID()
public Script.FieldID getFieldID_Input()