Bonjour à tous,

j'ai quelques petits problèmes de compilation avec la Lib Opencv 3.0, je viens de passer de la version 2.9 à 3.0 pour des besoins pratiques. Cependant lorsque je recompile mon projet j'ai plusieurs erreurs de compilation qui apparaissent et que je n'avais pas avec la version 2.9. Quelqu'un aurait-il un idée sur la procédure à effectuer afin de pallier à ce problème ?

Merci d'avance

Commande de compilation:
g++ -o fonction_traitement_image.o -c fonction_traitement_image.cpp -W -Wall -std=gnu++0x -lopencv_highgui -lopencv_core -lopencv_legacy -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_imgproc -fopenmp -lpthread -D_REENTRANT -DLinux -lm

Message d'erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
fonction_traitement_image.cpp:62:24: note:   mismatched types ‘const cv::Point3_<_Tp>’ and ‘IplImage* {aka _IplImage*}’
   Mat mat_image( image );
                        ^
In file included from /usr/local/include/opencv2/core.hpp:59:0,
                 from /usr/local/include/opencv2/highgui.hpp:46,
                 from /usr/local/include/opencv2/highgui/highgui.hpp:48,
                 from fonction_traitement_image.h:7,
                 from fonction_traitement_image.cpp:38:
/usr/local/include/opencv2/core/mat.hpp:914:37: note: template<class _Tp> cv::Mat::Mat(const cv::Point_<_Tp>&, bool)
     template<typename _Tp> explicit Mat(const Point_<_Tp>& pt, bool copyData=true);
                                     ^
/usr/local/include/opencv2/core/mat.hpp:914:37: note:   template argument deduction/substitution failed:
fonction_traitement_image.cpp:62:24: note:   mismatched types ‘const cv::Point_<_Tp>’ and ‘IplImage* {aka _IplImage*}’
   Mat mat_image( image );
                        ^
In file included from /usr/local/include/opencv2/core.hpp:59:0,
                 from /usr/local/include/opencv2/highgui.hpp:46,
                 from /usr/local/include/opencv2/highgui/highgui.hpp:48,
                 from fonction_traitement_image.h:7,
                 from fonction_traitement_image.cpp:38:
/usr/local/include/opencv2/core/mat.hpp:910:51: note: template<class _Tp, int m, int n> cv::Mat::Mat(const cv::Matx<_Tp, m, n>&, bool)
     template<typename _Tp, int m, int n> explicit Mat(const Matx<_Tp, m, n>& mtx, bool copyData=true);
                                                   ^
/usr/local/include/opencv2/core/mat.hpp:910:51: note:   template argument deduction/substitution failed:
fonction_traitement_image.cpp:62:24: note:   mismatched types ‘const cv::Matx<_Tp, m, n>’ and ‘IplImage* {aka _IplImage*}’
   Mat mat_image( image );
                        ^
In file included from /usr/local/include/opencv2/core.hpp:59:0,
                 from /usr/local/include/opencv2/highgui.hpp:46,
                 from /usr/local/include/opencv2/highgui/highgui.hpp:48,
                 from fonction_traitement_image.h:7,
                 from fonction_traitement_image.cpp:38:
/usr/local/include/opencv2/core/mat.hpp:906:44: note: template<class _Tp, int n> cv::Mat::Mat(const cv::Vec<_Tp, m>&, bool)
     template<typename _Tp, int n> explicit Mat(const Vec<_Tp, n>& vec, bool copyData=true);