Ask Your Question

colin's profile - activity

2013-06-03 10:09:20 -0500 asked a question How to save the property ?

After installing opencv , there's a lot of changes in my property. But when I start a new project (win32 console), the properties are all gone. Is there any way to save them as a default when I start a new project?

2013-06-02 13:03:30 -0500 received badge  Supporter (source)
2013-06-01 19:17:05 -0500 commented answer where should I put my image ?

I'm still confusing ~ if I want to show an image under the path "C:\Users\colin\Desktop\pictures\0.jpg" how should i modify my code?

2013-06-01 12:12:21 -0500 received badge  Editor (source)
2013-06-01 12:11:15 -0500 asked a question where should I put my image ?

Here is the code to show the image :

#include "highgui.h"
#include <iostream>
#include <cv.h>

using namespace std;

int main(int argc,char** argv)
    char filename[]="0.jpg";
    IplImage* img = cvLoadImage(filename,CV_LOAD_IMAGE_UNCHANGED);
      cout<<"Error: Couldn't open the image file.\n";

>>> char filename[]="0.jpg";

How can it load an image without telling it the direct path of the image? or should I put my image in a default path?