Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

oh, please, you must not use opencv's arcane c-api, but the c++ one:

#include <opencv2/opencv.hpp>
int main(int argc, char** argv) {

    cv::Mat img = cv::imread("C:\\flower.jpg",1);
    cv::namedWindow(“Example1”, cv::WINDOW_AUTOSIZE);
    cv::imshow(“Example1”, img);
    cv::waitKey(0);
    return 0;
 }

oh, please, you must not use opencv's arcane c-api, but the c++ one:

#include <opencv2/opencv.hpp>
int main(int argc, char** argv) {

    cv::Mat img = cv::imread("C:\\flower.jpg",1);
    cv::namedWindow(“Example1”, cv::namedWindow("Example1", cv::WINDOW_AUTOSIZE);
    cv::imshow(“Example1”, img);
    cv::waitKey(0);
    return 0;
 }

also, it has to be "Example1" , not “Example1” (never use WORD or such for coding ;)

oh, please, you must not use opencv's arcane c-api, but the c++ one:

#include <opencv2/opencv.hpp>
int main(int argc, char** argv) {

    cv::Mat img = cv::imread("C:\\flower.jpg",1);
    cv::namedWindow("Example1", cv::WINDOW_AUTOSIZE);
    cv::imshow(“Example1”, cv::imshow("Example1", img);
    cv::waitKey(0);
    return 0;
 }

also, it has to be "Example1" , not “Example1” (never use WORD or such for coding ;)

oh, please, you must not use opencv's arcane c-api, but the c++ one:

#include <opencv2/opencv.hpp>
int main(int argc, char** argv) {

    cv::Mat img = cv::imread("C:\\flower.jpg",1);
    cv::namedWindow("Example1", cv::WINDOW_AUTOSIZE);
    cv::imshow("Example1", img);
    cv::waitKey(0);
    return 0;
 }

also, it has to be "Example1" , not “Example1” (never use WORD or such for coding ;)