After getting the OpenCV using mac port I ran into trouble linking projects using the OpenCV functionalities. Using linux, it is as easy as setting the “-lcv” linker flag. Using OSX, I was only successfull when the library paths are returned by the pkg-config utility. You can run the command without the back ticks, and copy… Continue reading Link OpenCV projects in OSX using gcc
Tag: OpenCV
Link OpenCV projects in OSX using gcc
After getting the OpenCV using mac port I ran into trouble linking projects using the OpenCV functionalities. Using linux, it is as easy as setting the “-lcv” linker flag. Using OSX, I was only successfull when the library paths are returned by the pkg-config utility. You can run the command without the back ticks, and copy… Continue reading Link OpenCV projects in OSX using gcc
Simple OpenCV video input/output sample
This short piece of code below captures a frame from a web cam and shows it in a window. Some simple transformations can be applied. #include #include int main(void) { //we assume, that there is only one camera CvCapture* capture= cvCaptureFromCAM(-1); IplImage* img; int loop; while(loop++width; int height = img->height; int nchannels = img->nChannels; int… Continue reading Simple OpenCV video input/output sample