Skip to content

Commit

Permalink
change makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaran committed Mar 31, 2014
1 parent e58bc12 commit 9115a76
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
8 changes: 6 additions & 2 deletions cv/Makefile
Original file line number Diff line number Diff line change
@@ -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
14 changes: 0 additions & 14 deletions cv/cv.cpp
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Binary file added cv/cv.o
Binary file not shown.
Binary file added cv/main
Binary file not shown.
11 changes: 11 additions & 0 deletions cv/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "cv.h"
#include <stdio.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;
}
3 changes: 3 additions & 0 deletions cv/main.cpp~
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "cv.h"
#include <stdio.h>

Binary file added cv/main.o
Binary file not shown.

0 comments on commit 9115a76

Please sign in to comment.