com.iristick.smartglass.support.camera2.params
Class RggbChannelVector¶
- java.lang.Object
-
- com.iristick.smartglass.support.camera2.params.RggbChannelVector
Deprecated.
Not maintained anymore. Please use the
com.iristick.smartglass.core.camera
package instead.@Deprecated public abstract class RggbChannelVector extends Object
Immutable class to store a 4-element vector of floats indexable by a bayer RAW 2x2 pixel block.
- Since:
- Android API level 21
Field Summary¶
Modifier and Type | Field and Description |
---|---|
static int |
BLUE
Deprecated.
Blue color channel in a bayer Raw pattern.
|
static int |
COUNT
Deprecated.
The number of color channels in this vector.
|
static int |
GREEN_EVEN
Deprecated.
Green color channel in a bayer Raw pattern used by the even rows.
|
static int |
GREEN_ODD
Deprecated.
Green color channel in a bayer Raw pattern used by the odd rows.
|
static int |
RED
Deprecated.
Red color channel in a bayer Raw pattern.
|
Constructor Summary¶
Constructor and Description |
---|
RggbChannelVector()
Deprecated.
|
Method Summary¶
Modifier and Type | Method and Description |
---|---|
abstract void |
copyTo(float[] destination,
int offset)
Deprecated.
Copy the vector into the destination in the order
[R, Geven, Godd, B] . |
static RggbChannelVector |
create(float red,
float greenEven,
float greenOdd,
float blue)
Deprecated.
Create a new
RggbChannelVector from an RGGB 2x2 pixel. |
abstract boolean |
equals(Object obj)
Deprecated.
Check if this
RggbChannelVector is equal to another RggbChannelVector . |
abstract float |
getBlue()
Deprecated.
Get the blue component.
|
abstract float |
getComponent(int colorChannel)
Deprecated.
Get the component by the color channel index.
|
abstract float |
getGreenEven()
Deprecated.
Get the green (even rows) component.
|
abstract float |
getGreenOdd()
Deprecated.
Get the green (odd rows) component.
|
abstract float |
getRed()
Deprecated.
Get the red component.
|
abstract int |
hashCode()
Deprecated.
|
abstract String |
toString()
Deprecated.
Return the RggbChannelVector as a string representation.
|
Methods inherited from class java.lang.Object¶
getClass, notify, notifyAll, wait, wait, wait
Field Detail¶
COUNT¶
public static final int COUNT
Deprecated.
The number of color channels in this vector.
RED¶
public static final int RED
Deprecated.
Red color channel in a bayer Raw pattern.
GREEN_EVEN¶
public static final int GREEN_EVEN
Deprecated.
Green color channel in a bayer Raw pattern used by the even rows.
GREEN_ODD¶
public static final int GREEN_ODD
Deprecated.
Green color channel in a bayer Raw pattern used by the odd rows.
BLUE¶
public static final int BLUE
Deprecated.
Blue color channel in a bayer Raw pattern.
Constructor Detail¶
RggbChannelVector¶
public RggbChannelVector()
Deprecated.
Method Detail¶
create¶
public static RggbChannelVector create(float red, float greenEven, float greenOdd, float blue)
Deprecated.
Create a new
RggbChannelVector
from an RGGB 2x2 pixel.
All pixel values are considered normalized within [0.0f, 1.0f]
(i.e. 1.0f
could be linearized to 255
if converting to a
non-floating point pixel representation).
All arguments must be finite; NaN and infinity is not allowed.
- Parameters:
red
- red pixelgreenEven
- green pixel (even row)greenOdd
- green pixel (odd row)blue
- blue pixel- Returns:
- A new
RggbChannelVector
instance. - Throws:
IllegalArgumentException
- if any of the arguments were not finite
getRed¶
public abstract float getRed()
Deprecated.
Get the red component.
- Returns:
- a floating point value (guaranteed to be finite)
getGreenEven¶
public abstract float getGreenEven()
Deprecated.
Get the green (even rows) component.
- Returns:
- a floating point value (guaranteed to be finite)
getGreenOdd¶
public abstract float getGreenOdd()
Deprecated.
Get the green (odd rows) component.
- Returns:
- a floating point value (guaranteed to be finite)
getBlue¶
public abstract float getBlue()
Deprecated.
Get the blue component.
- Returns:
- a floating point value (guaranteed to be finite)
getComponent¶
public abstract float getComponent(int colorChannel)
Deprecated.
Get the component by the color channel index.
colorChannel
must be one of RED
, GREEN_EVEN
, GREEN_ODD
,
BLUE
.
- Parameters:
colorChannel
- greater or equal to0
and less thanCOUNT
- Returns:
- a floating point value (guaranteed to be finite)
- Throws:
IllegalArgumentException
- ifcolorChannel
was out of range
copyTo¶
public abstract void copyTo(float[] destination, int offset)
Deprecated.
Copy the vector into the destination in the order
[R, Geven, Godd, B]
.- Parameters:
destination
- an array big enough to hold at least 4 elements after theoffset
offset
- a non-negative offset into the array- Throws:
NullPointerException
- Ifdestination
wasnull
ArrayIndexOutOfBoundsException
- If there's not enough room to write the elements at the specified destination and offset.
equals¶
public abstract boolean equals(Object obj)
Deprecated.
Check if this
RggbChannelVector
is equal to another RggbChannelVector
.
Two vectors are only equal if and only if each of the respective elements is equal.
hashCode¶
public abstract int hashCode()
Deprecated.
toString¶
public abstract String toString()
Deprecated.
Return the RggbChannelVector as a string representation.
"RggbChannelVector{R:%f, G_even:%f, G_odd:%f, B:%f}"
, where each
%f
respectively represents one of the the four color channels.
- Overrides:
toString
in classObject
- Returns:
- string representation of
RggbChannelVector