Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Fatchur, please do not use opencv's legacy c-api, if it has IplImages in it, - run away !

Fatchur, please do not use opencv's legacy c-api, if it has IplImages in it, - run away !

Fatchur, please do not use opencv's legacy c-api, if it has IplImages in it, - run away !

#include <opencv2/opencv.hpp> // c++ headers(opencv2)
using namespace cv;
int C;

int main(){
    Mat img = imread(C:/Users/user/Pictures/fatchur.jpg); // single backslashes in path, please.
    namedWindow( "example1", CV_WINDOW_NORMAL );
    imshow( "example1", img );
    waitKey(0);
    return 0; // no manual release nessecary.
}

Fatchur, please do not use opencv's legacy c-api, if it has IplImages in it, - run away !

#include <opencv2/opencv.hpp> // c++ headers(opencv2)
using namespace cv;
int C;

int main(){
    Mat img = imread(C:/Users/user/Pictures/fatchur.jpg); // single backslashes in path, please.
    Mat img = imread(C:/Users/user/Pictures/fatchur.jpg); 
    namedWindow( "example1", CV_WINDOW_NORMAL );
    imshow( "example1", img );
    waitKey(0);
    return 0; // no manual release nessecary.
}

Fatchur, please do not use opencv's legacy c-api, if it has IplImages in it, - run away !

#include <opencv2/opencv.hpp> // c++ headers(opencv2)
using namespace cv;
int C;

int main(){
    // single backslashes in path, please.
    Mat img = imread(C:/Users/user/Pictures/fatchur.jpg); 
imread("C:/Users/user/Pictures/fatchur.jpg"); // path wrapped with "" !!!
    namedWindow( "example1", CV_WINDOW_NORMAL );
    imshow( "example1", img );
    waitKey(0);
    return 0; // no manual release nessecary.
}

Fatchur, please do not use opencv's legacy c-api, if it has IplImages in it, - run away !

#include <opencv2/opencv.hpp> // c++ headers(opencv2)
using namespace cv;
int C;

int main(){
    // single backslashes in path, please.
    Mat img = imread("C:/Users/user/Pictures/fatchur.jpg"); // path wrapped with "" !!!
    namedWindow( "example1", CV_WINDOW_NORMAL );
    imshow( "example1", img );
    waitKey(0);
    return 0; // no manual release nessecary.
}

Fatchur, please do not use opencv's legacy c-api, if it has IplImages in it, - run away !

#include <opencv2/opencv.hpp> // c++ headers(opencv2)
using namespace cv;

int main(){
    // single backslashes in path, please.
    Mat img = imread("C:/Users/user/Pictures/fatchur.jpg"); // path wrapped with "" !!!
!
    namedWindow( "example1", CV_WINDOW_NORMAL );
    imshow( "example1", img );
    waitKey(0);
    return 0; // no manual release nessecary.
}