Vista     Main Page   Class List   Function List   File List   Examples  


CMotion2DWarping.h

Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (c) 1995-2005 by INRIA.
00004   All Rights Reserved.
00005 
00006   This software was developed at:
00007   IRISA/INRIA Rennes
00008   Campus Universitaire de Beaulieu
00009   35042 Rennes Cedex
00010 
00011   http://www.irisa.fr
00012 
00013 */
00014 
00020 #ifndef CMotion2DWarping_h
00021 #define CMotion2DWarping_h
00022 
00023 #include <stdio.h>
00024 #include <Motion2D.h>
00025 #include <CMotion2DModel.h>
00026 
00027 
00028 #if defined (WIN32)
00029 #  if defined MOTION2D_DLL_EXPORTS
00030 #     define MOTION2D_API __declspec( dllexport )
00031 #  elif defined MOTION2D_DLL_IMPORTS
00032 #     define MOTION2D_API __declspec( dllimport )
00033 #  else
00034 #     define MOTION2D_API
00035 #  endif
00036 #else
00037 #     define MOTION2D_API
00038 #endif
00039 
00040 //
00041 // For image warping.
00042 //
00043 class MOTION2D_API CMotion2DWarping
00044 {
00045  public:
00046   CMotion2DWarping();
00047   ~CMotion2DWarping();
00048 
00049   bool initBackWarp(int dst_nrows, int dst_ncols,
00050                     int dst_row_offset, int dst_col_offset);
00051   bool backWarp(unsigned char *src, int src_nrows, int src_ncols,
00052                 unsigned char *dst, CMotion2DModel model);
00053   bool backWarp(short *src, int src_nrows, int src_ncols,
00054                 short *dst, CMotion2DModel model);
00055   void getBackWarpPosition(int row, int col, float &d_row, float &d_col);
00056   bool warp(unsigned char *src, unsigned char *dst,
00057             int nrows, int ncols, CMotion2DModel model);
00058 
00059   int   Nbli_ima_out;           // Nombre de lignes de l'image recalee.
00060   int   Nbcol_ima_out;          // Nombre de colonnes de l'image recalee.
00061   int   Offset_li;              // Decalage en lignes par rapport a l'origine.
00062   int   Offset_co;              // Decalage en colonn par rapport a l'origine.
00063   float Ivariation;             // Variation d'intensite entre l'image de
00064                                 // reference et l'image traitee.
00065   TImageFloat imFx;             // Deplacements en x a appliquer a chaque pixel
00066                                 // pour recaler une image.
00067   TImageFloat imFy;             // Deplacements en y a appliquer a chaque pixel
00068                                 // pour recaler une image.
00069 
00070 };
00071 
00072 
00073 #endif

Motion2D is Copyright © 1995-2005 by Inria
This documentation was generated on 31 Jan 2005 by Fabien Spindler for Motion2D 1.3.11 using doxygen1.2.18 written by Dimitri van Heesch, © 1997-2005