java.lang.Object | ||||
↳ | android.renderscript.BaseObj | |||
↳ | android.renderscript.Script | |||
↳ | android.renderscript.ScriptIntrinsic | |||
↳ | android.renderscript.ScriptIntrinsicHistogram |
Intrinsic Histogram filter.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an intrinsic for calculating the histogram of an uchar
or uchar4 image.
| |||||||||||
Process an input buffer and place the histogram into the
output allocation.
| |||||||||||
Process an input buffer and place the histogram into the
output allocation.
| |||||||||||
Process an input buffer and place the histogram into the
output allocation.
| |||||||||||
Process an input buffer and place the histogram into the
output allocation.
| |||||||||||
Get a FieldID for the input field of this intrinsic.
| |||||||||||
Get a KernelID for this intrinsic kernel.
| |||||||||||
Set the coefficients used for the RGBA to Luminocity
calculation.
| |||||||||||
Set the output of the histogram.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.renderscript.Script
| |||||||||||
From class
android.renderscript.BaseObj
| |||||||||||
From class
java.lang.Object
|
Create an intrinsic for calculating the histogram of an uchar
or uchar4 image.
Supported elements types are
U8_4(RenderScript)
, U8_3(RenderScript)
,
U8_2(RenderScript)
, U8(RenderScript)
rs | The RenderScript context |
---|---|
e | Element type for inputs |
Process an input buffer and place the histogram into the output allocation. The output allocation may be a narrower vector size than the input. In this case the vector size of the output is used to determine how many of the input channels are used in the computation. This is useful if you have an RGBA input buffer but only want the histogram for RGB. 1D and 2D input allocations are supported.
ain | The input image |
---|---|
opt | LaunchOptions for clipping |
Process an input buffer and place the histogram into the output allocation. The output allocation may be a narrower vector size than the input. In this case the vector size of the output is used to determine how many of the input channels are used in the computation. This is useful if you have an RGBA input buffer but only want the histogram for RGB. 1D and 2D input allocations are supported.
ain | The input image |
---|
Process an input buffer and place the histogram into the output allocation. The dot product of the input channel and the coefficients from 'setDotCoefficients' are used to calculate the output values. 1D and 2D input allocations are supported.
ain | The input image |
---|
Process an input buffer and place the histogram into the output allocation. The dot product of the input channel and the coefficients from 'setDotCoefficients' are used to calculate the output values. 1D and 2D input allocations are supported.
ain | The input image |
---|---|
opt | LaunchOptions for clipping |
Get a FieldID for the input field of this intrinsic.
Get a KernelID for this intrinsic kernel.
Set the coefficients used for the RGBA to Luminocity calculation. The default is {0.299f, 0.587f, 0.114f, 0.f}. Coefficients must be >= 0 and sum to 1.0 or less.
r | Red coefficient |
---|---|
g | Green coefficient |
b | Blue coefficient |
a | Alpha coefficient |
Set the output of the histogram. 32 bit integer types are supported.
aout | The output allocation |
---|