java.lang.Object | |
↳ | android.hardware.camera2.params.LensShadingMap |
Immutable class for describing a 4 x N x M
lens shading map of floats.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
float | MINIMUM_GAIN_FACTOR | The smallest gain factor in this map. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copy all gain factors in row-major order from this lens shading map into the destination.
| |||||||||||
Check if this LensShadingMap is equal to another LensShadingMap.
| |||||||||||
Get the number of columns in this map.
| |||||||||||
Get a single color channel gain factor from this lens shading map by its row and column.
| |||||||||||
Get the total number of gain factors in this map.
| |||||||||||
Get a gain factor vector from this lens shading map by its row and column.
| |||||||||||
Get the number of rows in this map.
| |||||||||||
Returns an integer hash code for this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The smallest gain factor in this map.
All values in this map will be at least this large.
Copy all gain factors in row-major order from this lens shading map into the destination.
Each gain factor will be >= MINIMUM_GAIN_FACTOR
.
destination | an array big enough to hold at least COUNT
elements after the offset |
---|---|
offset | a non-negative offset into the array |
NullPointerException | If destination was null |
---|---|
IllegalArgumentException | If offset was negative |
ArrayIndexOutOfBoundsException | If there's not enough room to write the elements at the specified destination and offset. |
Check if this LensShadingMap is equal to another LensShadingMap.
Two lens shading maps are equal if and only if they have the same rows/columns,
and all of their elements are equal
.
obj | the object to compare this instance with. |
---|
true
if the objects were equal, false
otherwise
Get the number of columns in this map.
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.
colorChannel | color channel from [R, Geven, Godd, B] |
---|---|
column | within the range [0, getColumnCount() ) |
row | within the range [0, getRowCount() ) |
.MINIMUM_GAIN_FACTOR
IllegalArgumentException | if any of the parameters was out of range |
---|
Get the total number of gain factors in this map.
A single gain factor contains exactly one color channel.
Use with copyGainFactors(float[], int)
to allocate a large-enough array.
Get a gain factor vector 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()
).
column | within the range [0, getColumnCount() ) |
---|---|
row | within the range [0, getRowCount() ) |
RggbChannelVector
where each gain factor >= .MINIMUM_GAIN_FACTOR
IllegalArgumentException | if any of the parameters was out of range |
---|
Get the number of rows in this map.
Returns an integer hash code for this object. By contract, any two
objects for which equals(Object)
returns true
must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode
method
if you intend implementing your own hashCode
method.