3 * Copyright (C) 1997-2012 Adam Williams <broadcast at earthling dot net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef OPENCVWRAPPER_H
24 #define OPENCVWRAPPER_H
26 #include "opencv2/core/core_c.h"
37 float get_dst_x(int number);
38 float get_dst_y(int number);
40 void grey_crop(unsigned char *dst,
49 // Returns 1 when it got something
50 int scan(VFrame *object_frame,
62 int locatePlanarObject(const CvSeq* objectKeypoints,
63 const CvSeq* objectDescriptors,
64 const CvSeq* imageKeypoints,
65 const CvSeq* imageDescriptors,
66 const CvPoint src_corners[4],
70 // Images in the format OpenCV requires
71 IplImage *object_image;
72 IplImage *scene_image;
78 CvSeq *object_keypoints;
79 CvSeq *object_descriptors;
80 CvSeq *scene_keypoints;
81 CvSeq *scene_descriptors;
82 CvMemStorage *storage;