Things that just don't work
An ongoing list:
cvMinMaxLoc on non-32F images
cvPyrUp / cvPyrDown on 32F images (works on 8U)
Why? Who knows.
cvMinMaxLoc on non-32F images
cvPyrUp / cvPyrDown on 32F images (works on 8U)
Why? Who knows.
A discussion of problems encountered in implementing random computer vision related algorithms in OpenCV.
"C:\Program Files\OpenCV\cvaux\include\";"C:\Program Files\OpenCV\cxcore\include\";"C:\Program Files\OpenCV\cv\include\";"C:\Program Files\OpenCV\otherlibs\highgui\";"C:\Program Files\OpenCV\otherlibs\cvcam\include\"
"C:\Program Files\OpenCV\cvaux\include\";"C:\Program Files\OpenCV\cxcore\include\";"C:\Program Files\OpenCV\cv\include\";"C:\Program Files\OpenCV\otherlibs\highgui\";"C:\Program Files\OpenCV\otherlibs\cvcam\include\"
"C:\Program Files\OpenCV\lib\cv.lib" "C:\Program Files\OpenCV\lib\cxcore.lib" "C:\Program Files\OpenCV\lib\cvaux.lib" "C:\Program Files\OpenCV\lib\highgui.lib"(notice the spaces instead of ; marks)
void cvCanny( const CvArr* image, CvArr* edges, double threshold1,
double threshold2, int aperture_size=3 );
cvCanny(sourceimage, resultimage, low_threshold, high_threshold);
cvCanny(sourceimage, resultimage, low_threshold, high_threshold, aperature_size);
gcc test.cpp -o test `pkg-config --libs opencv --cflags opencv`
g++ test.cpp -o test `pkg-config --libs opencv --cflags opencv`
#include "cv.h"
#include "highgui.h"
int main( int arc, char ** argv)
{
int W = 640;
int H = 480;
// Images are stored in IplImage structs. The function cvCreateImage
// allocates space for an image of a certain type, in this case an
// 8 bit, 1 channel (grayscale) image.
IplImage *image = cvCreateImage(cvSize(W, H), IPL_DEPTH_8U, 1);
// Create a named window and show our image on it
cvNamedWindow("My First OpenCV Program", 1);
cvShowImage("My First OpenCV Program", image);
// Wait for any keystroke and then release the image from memory and exit
// the program
cvWaitKey(0);
cvReleaseImage(&image);
return 0;
}
gcc test.c -o test `pkg-config --libs opencv --cflags opencv`
tar -xzf opencv-0.9.6.tar.gz
cd opencv-0.9.6
./configure
make
su -
make install
exit (to get out of root)
gcc test.c -o test `pkg-config --libs opencv --cflags opencv`
pkg-config --libs opencv --cflags opencv
-I/usr/local/include/opencv -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux