Página Principal   Hierarquia de Classes   Lista de Componentes   Lista de Arquivos   Componentes Membros  

Morphing.hpp

00001 /*      Morphing.hpp - Morpheous
00002  *
00003  *  $Header: /home/aldon/cvs/Morpheous/include/Morphing.hpp,v 1.3 2003/08/21 02:01:51 aldon Exp $
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 
00020 
00021 #ifndef __MORPHING_HPP__
00022 #define __MORPHING_HPP__
00023 
00024 
00025 #include "Image.hpp"
00026 #include "Mapping.hpp"
00027 
00031 class Morphing
00032 {
00033 protected:
00034     
00038     const Image* image1;
00039     
00043     const Image* image2;
00044     
00048     Image* outImage;
00049     
00053     const Mapping* mapping;
00054     
00058     Pair warp(const Vector& p, const Vector* pm, const Pair* pairList);
00059     
00060 public:
00064     Morphing(const Mapping* mapping);
00065     
00069     ~Morphing();
00070     
00076     const Image* doMorph(float s);
00077 
00083     const Image* getImage(WhichImage which) const;
00084     
00090     void setImage(const Image* image, WhichImage which);
00091     
00096     const Image* getOutputImage() const;
00097 };
00098 
00099 
00100 #endif // __MORPHING_HPP__

Gerado em Sun Sep 21 20:18:44 2003 para Morpheous por doxygen1.2.13.1 escrito por Dimitri van Heesch, © 1997-2001