ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I would vote for the includes, and the C-style function.
With these I'm not sure that you'll get what you need. The right way to do the includes is
Those includes above will reference to the old legacy versions of opencv still available in some Ubuntu versions.
Also if you are developing a new code (and I can see that it's C++) please use the new C++ API to easily avoid problems like memory leaks and such. Too bad that 95% of the example materials that can be found (official&unofficial) on OpenCV are still advertising the old API. For example your line of code would look like this:
if( !cv::imread("13_45_07-65.bmp").empty() ) cout << "sorry" << endl;
2 | No.2 Revision |
I would vote for the includes, and the C-style function.
With these I'm not sure that you'll get what you need. The right way to do the includes is
Those includes above will reference to the old legacy versions of opencv still available in some Ubuntu versions.
Also if you are developing a new code (and I can see that it's C++) please use the new C++ API to easily avoid problems like memory leaks and such. Too bad that 95% of the example materials that can be found (official&unofficial) on OpenCV are still advertising the old API. For example your line of code would look like this:
if( !cv::imread("13_45_07-65.bmp").empty() ) cout << "sorry" << endl;
3 | No.3 Revision |
I would vote for the includes, and the C-style function.
include <highgui.h>
include <cv.h>
With these I'm not sure that you'll get what you need. The right way to do the includes is
include <opencv2 core=""core.hpp="">core.hpp="">include <opencv2 highgui="" highgui.hpp="">
Those includes above will reference to the old legacy versions of opencv still available in some Ubuntu versions.
Also if you are developing a new code (and I can see that it's C++) please use the new C++ API to easily avoid problems like memory leaks and such. Too bad that 95% of the example materials that can be found (official&unofficial) on OpenCV are still advertising the old API. For example your line of code would look like this:
if( !cv::imread("13_45_07-65.bmp").empty() ) cout << "sorry" << endl;
4 | No.4 Revision |
I would vote for the includes, and the C-style function.
include <highgui.h>
include <cv.h>
With these I'm not sure that you'll get what you need. The right way to do the includes is
include <opencv2 core="" core.hpp=""> include <opencv2 highgui="" highgui.hpp="">
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
Those includes above will reference to the old legacy versions of opencv still available in some Ubuntu versions.
Also if you are developing a new code (and I can see that it's C++) please use the new C++ API to easily avoid problems like memory leaks and such. Too bad that 95% of the example materials that can be found (official&unofficial) on OpenCV are still advertising the old API. For example your line of code would look like this:
if( !cv::imread("13_45_07-65.bmp").empty() ) cout << "sorry" << endl;
5 | No.5 Revision |
I would vote for the includes, and the C-style function.
#include <highgui.h>
With these I'm not sure that you'll get what you need. The right way to do the includes is
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
Those includes above will reference to the old legacy versions of opencv still available in some Ubuntu versions.
Also if you are developing a new code (and I can see that it's C++) please use the new C++ API to easily avoid problems like memory leaks and such. Too bad that 95% of the example materials that can be found (official&unofficial) on OpenCV are still advertising the old API. For example your line of code would look like this:
if( !cv::imread("13_45_07-65.bmp").empty() )
6 | No.6 Revision |
I would vote for the includes, and the C-style function.
#include <highgui.h>
#include <cv.h>
With these I'm not sure that you'll get what you need. The right way to do the includes is
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
Those includes above will reference to the old legacy versions of opencv still available in some Ubuntu versions.
Also if you are developing a new code (and I can see that it's C++) please use the new C++ API to easily avoid problems like memory leaks and such. Too bad that 95% of the example materials that can be found (official&unofficial) on OpenCV are still advertising the old API. For example your line of code would look like this:
if( !cv::imread("13_45_07-65.bmp").empty() !(cv::imread("13_45_07-65.bmp").empty()) )
cout << "sorry" << endl;
7 | No.7 Revision |
I would vote for the includes, and the C-style function.
#include <highgui.h>
#include <cv.h>
With these I'm not sure that you'll get what you need. The right way to do the includes is
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
Those includes above will reference to the old legacy versions of opencv still available in some Ubuntu versions.
Also if you are developing a new code (and I can see that it's C++) please use the new C++ API to easily avoid problems like memory leaks and such. Too bad that 95% of the example materials that can be found (official&unofficial) on OpenCV are still advertising the old API. For example your line of code would look like this:
if( !(cv::imread("13_45_07-65.bmp").empty()) cv::imread("13_45_07-65.bmp").empty() )
cout << "sorry" << endl;