contrib/mul/vil3d/vil3d_resample_simple.h
Go to the documentation of this file.
00001 // This is mul/vil3d/vil3d_resample_simple.h
00002 #ifndef vil3d_resample_simple_h_
00003 #define vil3d_resample_simple_h_
00004 
00005 //:
00006 // \file
00007 // \brief Resample a 3D image by a different factor in each dimension
00008 // \author Kevin de Souza
00009 
00010 #include <vil3d/vil3d_image_view.h>
00011 
00012 //: Resample a 3D image by a different factor in each dimension.
00013 //  dst_image resized by factors dx, dy, dz.
00014 //  dst_image(i, j, k, p) is sampled from src_image(i/dx, j/dy, k/dz, p).
00015 //  No interpolation is performed.
00016 template <class T >
00017 void vil3d_resample_simple(const vil3d_image_view< T >& src_image,
00018                            vil3d_image_view< T >& dst_image,
00019                            const double dx, 
00020                            const double dy, 
00021                            const double dz);
00022 
00023 #endif // vil3d_resample_simple_h_