1 | initial version |
One way of compiling:-
1)chmod +x FILENAME.CPP
2)g++ -ggdb pkg-config --cflags opencv
-o basename FILENAME.cpp .cpp
FILENAME.CPP pkg-config --libs opencv
3)./FILENAME
And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h
SAMPLE CODE:
#include <highgui.h>
int main( int argc,char** argv)
{
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
cvShowImage("example1",img);
cvWaitKey(0);
cvReleaseImage( &img);
cvDestroyWindow("example1");
}
AGAIN if problem still persists,here's a way of installing opencv
LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/
LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780
Hope this helps you :)
2 | No.2 Revision |
One way of compiling:-
1)chmod +x FILENAME.CPP
2)g++ FILENAME.CPP
g++ -ggdb
`pkg-config --cflagspkg-config
opencvopencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv-obasename FILENAME.cpp .cpp
FILENAME.CPPpkg-config --libs opencv
2)./FILENAME
And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h
SAMPLE CODE:
#include <highgui.h>
int main( int argc,char** argv)
{
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
cvShowImage("example1",img);
cvWaitKey(0);
cvReleaseImage( &img);
cvDestroyWindow("example1");
}
AGAIN if problem still persists,here's a way of installing opencv
LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/
LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780
Hope this helps you :)
3 | No.3 Revision |
One way of compiling:- 1)chmod +x FILENAME.CPP
2)
g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv
2)./FILENAME
And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h
SAMPLE CODE:
#include <highgui.h>
int main( int argc,char** argv)
{
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
cvShowImage("example1",img);
cvWaitKey(0);
cvReleaseImage( &img);
cvDestroyWindow("example1");
}
AGAIN if problem still persists,here's a way of installing opencv
LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/
LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780
Hope this helps you :)
4 | No.4 Revision |
One way of compiling:- 1)chmod +x FILENAME.CPP
2)
g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv
opencv'
2)./FILENAME
And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h
SAMPLE CODE:
#include <highgui.h>
int main( int argc,char** argv)
{
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
cvShowImage("example1",img);
cvWaitKey(0);
cvReleaseImage( &img);
cvDestroyWindow("example1");
}
AGAIN if problem still persists,here's a way of installing opencv
LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/
LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780
Hope this helps you :)
5 | No.5 Revision |
One way of compiling:- 1)chmod +x FILENAME.CPP
2)
g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv'
2)./FILENAME3)./FILENAME image.Ext
And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h
SAMPLE CODE:
#include <highgui.h>
int main( int argc,char** argv)
{
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
cvShowImage("example1",img);
cvWaitKey(0);
cvReleaseImage( &img);
cvDestroyWindow("example1");
}
AGAIN if problem still persists,here's a way of installing opencv
LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/
LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780
Hope this helps you :)
6 | No.6 Revision |
One way of compiling:-
1)chmod +x FILENAME.CPPFILENAME.cpp
2)
g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP FILENAME.cpp `pkg-config --libs opencv'
3)./FILENAME image.Ext
And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h
SAMPLE CODE:
#include <highgui.h>
int main( int argc,char** argv)
{
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
cvShowImage("example1",img);
cvWaitKey(0);
cvReleaseImage( &img);
cvDestroyWindow("example1");
}
AGAIN if problem still persists,here's a way of installing opencv
LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/
LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780
Hope this helps you :)