|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.video.analysis.LuminosityColorDecoder
public class LuminosityColorDecoder
LuminosityColorDecoder transforms theTYPE_INT_ARGB integer color code into a normalized sum of red, green and blue components by calculating luminosity as Y = 0.299*R + 0.587*G + 0.114*B.
Constructor Summary | |
---|---|
LuminosityColorDecoder()
|
Method Summary | |
---|---|
double |
transform(int code)
Deprecated. |
double[] |
transform(int[] data)
Transforms the complete array of TYPE_INT_ARGB integer colors codes into meaningful double value array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuminosityColorDecoder()
Method Detail |
---|
@Deprecated public double transform(int code)
ColorDecoder
transform
in interface ColorDecoder
code
- the TYPE_INT_ARGB integer color code
public double[] transform(int[] data)
ColorDecoder
ColorDecoder.transform(int)
many times, which
might be costly.
transform
in interface ColorDecoder
data
- the data to transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |