diff --git a/cv/Makefile b/cv/Makefile index 68ec6e1..c0fd1c1 100644 --- a/cv/Makefile +++ b/cv/Makefile @@ -1,5 +1,9 @@ -cv: cv.cpp - g++ cv.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_objdetect -o cv +main: cv.o main.o + g++ main.o cv.o -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_objdetect -o main +main.o : main.cpp + g++ -g -c main.cpp +cv.o: cv.cpp + g++ -g -c cv.cpp diff --git a/cv/cv.cpp b/cv/cv.cpp index 1a85f12..7b6d080 100644 --- a/cv/cv.cpp +++ b/cv/cv.cpp @@ -1,20 +1,6 @@ #include "cv.h" -int main(int argc, char** argv){ - char name[]="test window"; - Mat image = Mat::zeros(WIDE,HEIGHT,CV_8UC3); - drawCircle(3,3,2,1,image); - imshow(name, image); - waitKey(0); - return 0; -} - - - - - - void drawCircle(int mx, int my, int x, int y , Mat img ){ int thickness = -1; diff --git a/cv/cv.o b/cv/cv.o new file mode 100644 index 0000000..42fc9ec Binary files /dev/null and b/cv/cv.o differ diff --git a/cv/main b/cv/main new file mode 100755 index 0000000..13c9912 Binary files /dev/null and b/cv/main differ diff --git a/cv/main.cpp b/cv/main.cpp new file mode 100644 index 0000000..e90a4f6 --- /dev/null +++ b/cv/main.cpp @@ -0,0 +1,11 @@ +#include "cv.h" +#include + +int main(int argc, char** argv){ + char name[]="test window"; + Mat image = Mat::zeros(WIDE,HEIGHT,CV_8UC3); + drawCircle(3,3,2,1,image); + imshow(name, image); + waitKey(0); + return 0; +} diff --git a/cv/main.cpp~ b/cv/main.cpp~ new file mode 100644 index 0000000..039df1d --- /dev/null +++ b/cv/main.cpp~ @@ -0,0 +1,3 @@ +#include "cv.h" +#include + diff --git a/cv/main.o b/cv/main.o new file mode 100644 index 0000000..5eebdea Binary files /dev/null and b/cv/main.o differ