34#include "ramCanvas.hpp"
38 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
39 mjr::ramCanvas3c8b theRamCanvas(7680/8, 4320/8, -2.2, 2.2, -2.2, 2.2);
41 theRamCanvas.clrCanvas(mjr::ramCanvas3c8b::colorType(255, 0, 0));
42 theRamCanvas.drawLine( 2, 2, theRamCanvas.getNumPixX()-3, 2, mjr::ramCanvas3c8b::colorType(0, 0, 255));
43 theRamCanvas.drawLine( 2, theRamCanvas.getNumPixY()-3, theRamCanvas.getNumPixX()-3, theRamCanvas.getNumPixY()-3, mjr::ramCanvas3c8b::colorType(0, 0, 255));
44 theRamCanvas.drawLine( 2, 2, 2, theRamCanvas.getNumPixY()-3, mjr::ramCanvas3c8b::colorType(0, 0, 255));
45 theRamCanvas.drawLine( theRamCanvas.getNumPixX()-3, 2, theRamCanvas.getNumPixX()-3, theRamCanvas.getNumPixY()-3, mjr::ramCanvas3c8b::colorType(0, 0, 255));
46 theRamCanvas.writeTIFFfile(
"dlaSeed_border.tiff");
48 theRamCanvas.clrCanvas(mjr::ramCanvas3c8b::colorType(255, 0, 0));
49 theRamCanvas.drawPoint(theRamCanvas.getNumPixX()/2, theRamCanvas.getNumPixY()/2, mjr::ramCanvas3c8b::colorType(0, 0, 255));
50 theRamCanvas.writeTIFFfile(
"dlaSeed_center.tiff");
52 theRamCanvas.clrCanvas(mjr::ramCanvas3c8b::colorType(255, 0, 0));
53 theRamCanvas.drawCircle( theRamCanvas.getNumPixX()/2, theRamCanvas.getNumPixY()/2, theRamCanvas.getNumPixY()/4, mjr::ramCanvas3c8b::colorType(0, 0, 255));
54 theRamCanvas.drawCircle( theRamCanvas.getNumPixX()/2, theRamCanvas.getNumPixY()/2, theRamCanvas.getNumPixY()/2-3, mjr::ramCanvas3c8b::colorType(0, 0, 255));
55 theRamCanvas.drawCircle( theRamCanvas.getNumPixX()/2, theRamCanvas.getNumPixY()/2, theRamCanvas.getNumPixX()/2-3, mjr::ramCanvas3c8b::colorType(0, 0, 255));
56 theRamCanvas.drawCircle( theRamCanvas.getNumPixX()/2, theRamCanvas.getNumPixY()/2, (theRamCanvas.getNumPixY()+theRamCanvas.getNumPixX())/4-3, mjr::ramCanvas3c8b::colorType(0, 0, 255));
57 theRamCanvas.writeTIFFfile(
"dlaSeed_circles.tiff");
58 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
59 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])