Language

LensShadingMap.GetGainFactor Method

Definition

Overloads

Name Description
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)

Gets the gain factor for one color channel at the specified map column and row.

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)

Gets the gain factor for one color channel at the specified map column and row.

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

Parameters

colorChannel
Int32

The channel index: 0 for red, 1 for green on even Bayer rows, 2 for green on odd Bayer rows, or 3 for blue.

column
Int32

The zero-based column index, less than ColumnCount.

row
Int32

The zero-based row index, less than RowCount.

Returns

The gain factor, which is at least MinimumGainFactor.

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