39#include "ramCanvas.hpp"
43typedef mjr::ramCanvas1c16b::rcConverterColorScheme<mjr::ramCanvas1c16b, mjr::color3c8b, mjr::color3c8b::csCCfractal0RYBCW, true, 10, 0> g2rgb8;
47 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
48 const int IMXSIZ = 7680/2;
49 const int IMYSIZ = 4320/2;
50 const int NUMITR = 100;
53 const double h = 0.05;
56 mjr::ramCanvas1c16b hstRamCanvas(IMXSIZ, IMYSIZ, -4.0, 4.0, -2.25, 2.25);
58 for(
int y=0;y<hstRamCanvas.getNumPixY();y+=spany) {
60 std::cout << y << std::endl;
61 for(
int x=0;x<hstRamCanvas.getNumPixX();x+=spanx) {
62 double zx = hstRamCanvas.int2realX(x);
63 double zy = hstRamCanvas.int2realY(y);
64 for(
int i=0; i<NUMITR; i++) {
65 double tmpx = zx - h * std::sin(zy + std::tan(a * zy));
66 double tmpy = zy - h * std::sin(zx + std::tan(b * zx));
69 int ix = hstRamCanvas.real2intX(zx);
70 int iy = hstRamCanvas.real2intY(zy);
71 if (hstRamCanvas.isOnCanvas(ix, iy))
72 hstRamCanvas.getPxColorRefNC(ix, iy).tfrmAdd(1);
76 hstRamCanvas.writeTIFFfile(
"pickoverPopcornCNT.tiff");
77 g2rgb8 rcFilt(hstRamCanvas);
78 hstRamCanvas.writeTIFFfile(
"pickoverPopcornCOL.tiff", rcFilt,
false);
79 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
80 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])