| 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;
}
| 2 | No.2 Revision |
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 ;)
| 3 | No.3 Revision |
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 ;)
| 4 | No.4 Revision |
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 ;)