00001 #ifndef __WARP_H 00002 #define __WARP_H 00003 00004 #include <boost/numeric/ublas/vector.hpp> 00005 #include "image.h" 00006 00007 namespace mimas { 00008 00027 template< class Tensor, typename T > 00028 class warp: public object 00029 { 00030 public: 00031 typedef boost::numeric::ublas::vector< double > Vector; 00035 warp( const Tensor &aT, T aBackground ): t(aT), background(aBackground) {} 00039 mimas::image< T > operator()( const mimas::image< T > &in ) const; 00040 protected: 00042 Tensor t; 00044 T background; 00045 }; 00046 00048 00049 }; 00050 00051 #include "warp.tcc" 00052 00053 #endif