|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.frame.analyzer.MidGreyAnalyzer
public class MidGreyAnalyzer
Analyzer for pixels of a picture that is displayed in a PictureFrame
.
The mid-grey analyzer returns LedState.ON
when the average of these three values is over or equal to 128, LedState.OFF
otherwise.
Constructor Summary | |
---|---|
MidGreyAnalyzer()
Constructs a mid grey analyzer. |
Method Summary | |
---|---|
LedButtonCouple.LedState |
getLedStateForPixel(int[] pixel)
Returns the led state that corresponds to specified Red/Green/Blue informations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MidGreyAnalyzer()
Method Detail |
---|
public LedButtonCouple.LedState getLedStateForPixel(int[] pixel)
LedState.ON
when the average of these three values is over or equal to 128, LedState.OFF
otherwise.
getLedStateForPixel
in interface PictureAnalyzer
pixel
- Red/Green/Blue informations of the desired pixel specified in an array of three integer values between 0 and 255 (included).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |