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
|
// Example program
#include <iostream>
#include <string>
#include <vector>
class stacker {
public:
struct pixel {
int pRed, pGreen, pBlue;
};
struct stddev {
double sRed, sGreen, sBlue;
};
std::vector<pixel> staticImage;
std::vector<stddev> hdImage;
};
int main()
{
stacker stack;
stack.staticImage = { {3, 2, 1}, {4, 5, 6}, {255, 255, 255} };
stack.hdImage = { {0.3, 0.5, 0.6}, {1.0, 1.0, 0.0}, {0.5, 0.5, 0.5} };
}
|