clean color adjustment (#428)

This commit is contained in:
redPanther
2017-03-31 19:37:27 +02:00
committed by GitHub
parent 7f8ad86bdd
commit 852f7b86bb
4 changed files with 27 additions and 101 deletions

View File

@@ -21,6 +21,10 @@ public:
/// Destructor
~RgbChannelAdjustment();
/// Transform the given array value
/// @param input The input color bytes
void apply(uint8_t input, uint8_t & red, uint8_t & green, uint8_t & blue);
/// setAdjustment RGB
/// @param adjustR
@@ -31,29 +35,12 @@ public:
/// @return The current adjustR value
uint8_t getAdjustmentR() const;
/// @param threshold New adjustR value
void setAdjustmentR(uint8_t adjustR);
/// @return The current adjustG value
uint8_t getAdjustmentG() const;
/// @param gamma New adjustG value
void setAdjustmentG(uint8_t adjustG);
/// @return The current adjustB value
uint8_t getAdjustmentB() const;
/// @param blacklevel New adjustB value
void setAdjustmentB(uint8_t adjustB);
/// Transform the given array value
/// @param input The input color bytes
/// @return The corrected byte value
uint8_t getAdjustmentR(uint8_t inputR) const;
uint8_t getAdjustmentG(uint8_t inputG) const;
uint8_t getAdjustmentB(uint8_t inputB) const;
private:
/// color channels
enum ColorChannel { RED=0,GREEN=1, BLUE=2 };