alc-on; gcc `pkg-config --cflags opencv` `pkg-config --libs opencv`-swc -o sample.swc sample.c; alc-off;
Medical Imaging, Image Processing, Computer Vision, Pattern Recognition, Research, Medical & Health Informatics
Showing posts with label opencv. Show all posts
Showing posts with label opencv. Show all posts
Monday, April 11, 2011
OSX Term + OpenCV + Alchemy SWC , Compilation I
, This should be it.
Sunday, January 16, 2011
OpenCV + Visual Studio 2010 [I]
This entry documents my upcoming trials to solve the vs2010 + opencv 2.x problem.
To date, i have been able to run OpenCV 2.1 with VS2010 in Release mode. Precisely speaking, linking to release library of OpenCV 2.1 works without problems, but linking to debug library of OpenCV2.1(cv210d.lib, cxcore210d.lib, highgui210.lib)[1] wont' let me proceed.
#include "stdafx.h"#include \#include \#include \int _tmain(int argc, _TCHAR* argv[]){IplImage *img = cvLoadImage("C:\\output.JPG");cvNamedWindow("Image:",1);cvShowImage("Image:",img);cvWaitKey();cvDestroyWindow("Image:");cvReleaseImage(&img);return 0;}
The above code can be compiled and executed without the infamous curse: "0 x c0150002".
To run without the infamous curse in Release mode, i only needed to install the VS2010 redistributable package[http://www.microsoft.com/downloads/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84&displaylang=en]
To run without the infamous curse in Release mode, i only needed to install the VS2010 redistributable package[http://www.microsoft.com/downloads/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84&displaylang=en]
However, in debug mode, i still don't have much luck.
[1] Apparently, linking to cv210d.lib proceeded without errors; the problems emerge when linking the other two d-libs.
Subscribe to:
Posts (Atom)