Share via


ScriptIntrinsicHistogram.ForEach Method

Definition

Overloads

ForEach(Allocation)

Process an input buffer and place the histogram into the output allocation.

ForEach(Allocation, Script+LaunchOptions)

Process an input buffer and place the histogram into the output allocation.

ForEach(Allocation)

Process an input buffer and place the histogram into the output allocation.

[Android.Runtime.Register("forEach", "(Landroid/renderscript/Allocation;)V", "")]
public void ForEach (Android.Renderscripts.Allocation? ain);
[<Android.Runtime.Register("forEach", "(Landroid/renderscript/Allocation;)V", "")>]
override this.ForEach : Android.Renderscripts.Allocation -> unit

Parameters

ain
Allocation

The input image

Attributes

Remarks

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.

Java documentation for android.renderscript.ScriptIntrinsicHistogram.forEach(android.renderscript.Allocation).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ForEach(Allocation, Script+LaunchOptions)

Process an input buffer and place the histogram into the output allocation.

[Android.Runtime.Register("forEach", "(Landroid/renderscript/Allocation;Landroid/renderscript/Script$LaunchOptions;)V", "")]
public void ForEach (Android.Renderscripts.Allocation? ain, Android.Renderscripts.Script.LaunchOptions? opt);
[<Android.Runtime.Register("forEach", "(Landroid/renderscript/Allocation;Landroid/renderscript/Script$LaunchOptions;)V", "")>]
override this.ForEach : Android.Renderscripts.Allocation * Android.Renderscripts.Script.LaunchOptions -> unit

Parameters

ain
Allocation

The input image

opt
Script.LaunchOptions

LaunchOptions for clipping

Attributes

Remarks

Java documentation for android.renderscript.ScriptIntrinsicHistogram.forEach(android.renderscript.Allocation).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to