LensShadingMap.GetGainFactor Method

Definition

Overloads

GetGainFactor(Color, Int32, Int32)

Get a single color channel gain factor from this lens shading map by its row and column.

GetGainFactor(Int32, Int32, Int32)

GetGainFactor(Color, Int32, Int32)

Get a single color channel gain factor from this lens shading map by its row and column.

[Android.Runtime.Register("getGainFactor", "(III)F", "")]
public float GetGainFactor (Android.Graphics.Color colorChannel, int column, int row);
[<Android.Runtime.Register("getGainFactor", "(III)F", "")>]
member this.GetGainFactor : Android.Graphics.Color * int * int -> single

Parameters

colorChannel
Color

color channel from [R, Geven, Godd, B]

column
Int32

within the range [0, #getColumnCount)

row
Int32

within the range [0, #getRowCount)

Returns

a gain factor >= #MINIMUM_GAIN_FACTOR

Attributes

Exceptions

if any of the parameters was out of range

Remarks

Get a single color channel gain factor from this lens shading map by its row and column.

The rows must be within the range [0, #getRowCount), the column must be within the range [0, #getColumnCount), and the color channel must be within the range [0, RggbChannelVector#COUNT).

The channel order is [R, Geven, Godd, B], where Geven is the green channel for the even rows of a Bayer pattern, and Godd is the odd rows.

Java documentation for android.hardware.camera2.params.LensShadingMap.getGainFactor(int, int, int).

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.

See also

Applies to

GetGainFactor(Int32, Int32, Int32)

public float GetGainFactor (int colorChannel, int column, int row);
member this.GetGainFactor : int * int * int -> single

Parameters

colorChannel
Int32
column
Int32
row
Int32

Returns

Remarks

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