Not able to read Image in OpenCV, C++ Visual Studio -



Not able to read Image in OpenCV, C++ Visual Studio -

below code. don't know issue is. same code works on other machine. have reinstalled visual studio 2012 desktop, express edition, several times , have reinstalled opencv several times.

when debug program, img empty.

i don't know now, can perchance in order code work in current development environment wiz: windwos 8.1, opencv 2.4.9.

int main( int argc, const char** argv ) { mat img = imread("my_image.jpg",1); //read image info in file "mypic.jpg" , store in 'img' if (img.empty()) //check whether image loaded or not { cout << "error : image cannot loaded..!!" << endl; //system("pause"); //wait key press homecoming -1; } namedwindow("mywindow", cv_window_autosize); //create window name "mywindow" imshow("mywindow", img); //display image stored in 'img' in "mywindow" window waitkey(0); //wait infinite time keypress destroywindow("mywindow"); //destroy window name, "mywindow" homecoming 0; }

may compiling own opencv , using debug symbols might know cause.

currently not able figure out problem is: either vs or opencv, other codes seem work vs.

initially adding *.lib files in linker input. doing not able read image.

solution adding 3 files in linker input. these files are--

opencv_core249d.lib

opencv_highgui249d.lib

opencv_imgproc249d.lib

i still not know why lnking .lib files causing programme not run?

c++ opencv visual-studio-2012 image-processing

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -