1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#include <vector>
// options generated from command line is stored here
class OPTIONS {
struct COLORS {
float hmin; float smin; float vmin;
float hmax; float smax; float vmax;
// RGB replacecolor;
float haddcolor; float saddcolor; float vaddcolor;
};
enum ACTIONS {
// determines which member to work with
// select color and replace color - paranthesis syntax
selectMin, selectMax, replaceColor, addColor,
regex, merge,
gridBoost, // Boost systems
// Effects:
blur, brush, kernel, extend, contract,
invert, levels, threshold,
softLight, hardLight, pinLight,
multiply, color, hue
};
struct GRID {
// multiplier can be used if grid dimensions are relative to image dimensions
int w; int h; float wmultiplier; float hmultiplier;
};
struct MATRIX {
int kerneltype; int kernelw; int kernelh; float factor;
};
struct MERGE {
// multiplier can be used if grid dimensions are relative to image dimensions
std::vector<char *> Files;
};
struct BLENDING {
int softLightFactor; int hardLightFactor; int pinLightFactor;
int multiplyFactor; int colorFactor; int hueFactor;
};
struct LEVELS {
int inputB; int inputW; int inputG;
int outputB; int outputW; int outputG;
};
}
int main ()
{return 0;}
|