33#include "ramCanvas.hpp"
36int main(
int argc,
char *argv[]) {
37 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
38 mjr::ramCanvas3c8b dRamCanvas;
41 fprintf(stderr,
"ERROR argument required!\n");
46 if((rRet=dRamCanvas.readTIFFfile(argv[1]))) {
47 fprintf(stderr,
"ERROR(%d) reading file %s\n", rRet, argv[1]);
52 std::vector<double> mat {0.9238795325112867, 0.3826834323650898, 0.0, -0.3826834323650898, 0.9238795325112867, 0.0, 0.0, 0.0, 1.0};
53 double Xo = dRamCanvas.getNumPixX() / 2.0;
54 double Yo = dRamCanvas.getNumPixY() / 2.0;
57 mjr::ramCanvas3c8b uRamCanvas = dRamCanvas.geomTfrmRevAff(mat, Xo, Yo, s);
59 uRamCanvas.writeTIFFfile(
"geomTfrm_Rotate.tiff");
61 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
62 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])