aboutsummaryrefslogtreecommitdiff
path: root/fly-tools/misc/makeimage.cpp
diff options
context:
space:
mode:
authorJohn Morrison <jcm357@cs.drexel.edu>2014-10-28 14:31:05 -0400
committerJohn Morrison <jcm357@cs.drexel.edu>2014-10-28 14:31:05 -0400
commit3dd70b4d0e20f517f515a8b1d0ad7b5d79f48621 (patch)
treebccabe5e9169e2e843fba8d307ab4e117f6cf49f /fly-tools/misc/makeimage.cpp
parent01b3b8f87c1d4be14438a0fdc2a4daade9eb3038 (diff)
parentbda4a425da1073ca38b7ccf006d02f65b25a4755 (diff)
Merge branch 'master' of github.com:mutantturkey/FlyTracking
Diffstat (limited to 'fly-tools/misc/makeimage.cpp')
-rw-r--r--fly-tools/misc/makeimage.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/fly-tools/misc/makeimage.cpp b/fly-tools/misc/makeimage.cpp
deleted file mode 100644
index 06e2897..0000000
--- a/fly-tools/misc/makeimage.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#include <Magick++.h>
-#include <iostream>
-#include<fstream>
-#include<string>
-using namespace std;
-using namespace Magick;
-
-int main(int argc,char **argv)
-
-{
- // Construct the image object. Seperating image construction from the
- // the read operation ensures that a failure to read the image file
- // doesn't render the image object useless.
-
- Image* img;
- char buffer[100];
- sprintf(buffer,"%ix%i",7,7);
-
- // residual image is initialized with black representing not visited.
- //residual = new Image(buffer, "black");
-
- img = new Image(buffer, "white");
-
- for (int j=0; j<=3;j++) {
- for (int i=0; i<=3-j; i++) {
- img->pixelColor(i,j, "black");
- img->pixelColor(6-i,j, "black");
- }
- }
-
- int k;
- for (int j=4; j<=6;j++) {
- for (int i=0; i<=j-3; i++) {
- img->pixelColor(i,j, "black");
- img->pixelColor(6-i,j, "black");
- }
- }
-
-
- //img->pixelColor(0,3, "red");
-
-
- string namei = "7x7.png";
- img->write(namei.c_str());
-
- delete img;
-
- return 0;
-
-}
-