diff options
Diffstat (limited to 'pix_opencv_warpperspective.h')
-rw-r--r-- | pix_opencv_warpperspective.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pix_opencv_warpperspective.h b/pix_opencv_warpperspective.h index 27af960..22fca5f 100644 --- a/pix_opencv_warpperspective.h +++ b/pix_opencv_warpperspective.h @@ -2,7 +2,7 @@ LOG GEM - Graphics Environment for Multimedia - Contours Bounding Rectangle detection + Compute homography between 2 sets on points and apply transformation to input image Copyright (c) 1997-1999 Mark Danks. mark@danks.org Copyright (c) Günther Geiger. geiger@epy.co.at @@ -12,19 +12,17 @@ LOG WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution. -----------------------------------------------------------------*/ -// pix_opencv_warpperspective integration by Antoine Villeret - 2011 +// pix_opencv_warpperspective by Antoine Villeret - 2011/13 #ifndef INCLUDE_PIX_OPENCV_WARPPERSPECTIVE_H_ #define INCLUDE_PIX_OPENCV_WARPPERSPECTIVE_H_ #ifndef _EiC -#include "cv.h" +#include "cv.hpp" #endif #include "Base/GemPixObj.h" -#define MAX_MARKERS 500 - /*----------------------------------------------------------------- ------------------------------------------------------------------- CLASS @@ -64,6 +62,7 @@ class GEM_EXTERN pix_opencv_warpperspective : public GemPixObj void mapMatrixMess (int argc, t_atom *argv); void srcMatrixMess (int argc, t_atom *argv); void dstMatrixMess (int argc, t_atom *argv); + void invertMess (int argc, t_atom *argv); void findhomography(); // to detect changes in the image size @@ -85,7 +84,8 @@ class GEM_EXTERN pix_opencv_warpperspective : public GemPixObj static void mapMatrixMessCallback(void *data, t_symbol *s, int argc, t_atom *argv); static void srcMatrixMessCallback(void *data, t_symbol *s, int argc, t_atom *argv); static void dstMatrixMessCallback(void *data, t_symbol *s, int argc, t_atom *argv); - + static void invertMessCallback(void *data, t_symbol *s, int argc, t_atom *argv); + ///////// // IplImage needed IplImage *rgb, *tmp, *gray; |