00001 // 00002 // cvWrapper - header file to define CvPoint in case openCV is not installed 00003 // 00004 // Copyright (C) 2010 Elmar Mair 00005 // 00006 // This program is free software: you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation, either version 3 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 00019 #ifndef CVWRAPPER_H_ 00020 #define CVWRAPPER_H_ 00021 00022 #define HAVE_OPENCV //we normally do have opencv 00023 00024 #ifdef HAVE_OPENCV 00025 #include <opencv2/opencv.hpp> 00026 #else 00027 typedef struct CvPoint 00028 { 00029 int x; 00030 int y; 00031 } 00032 CvPoint; 00033 #endif 00034 00035 #endif /* CVWRAPPER_H_ */