From 4ad16e10bf38c10caf68aa1a1c4471646ba896b1 Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Sat, 18 May 2013 10:12:46 +0000 Subject: add invert method to invert transformation matrix svn path=/trunk/externals/pix_opencv/; revision=17136 --- pix_opencv_warpperspective.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pix_opencv_warpperspective.h') 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; -- cgit v1.2.1