Go to the documentation of this file.00001
00002 #ifndef vimt3d_gauss_reduce_h_
00003 #define vimt3d_gauss_reduce_h_
00004
00005
00006
00007
00008
00009
00010 #include <vil3d/algo/vil3d_gauss_reduce.h>
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 template<class T>
00021 void vimt3d_gauss_reduce(const vimt3d_image_3d_of<T>& src,
00022 vimt3d_image_3d_of<T>& dst,
00023 vimt3d_image_3d_of<T>& work1,
00024 vimt3d_image_3d_of<T>& work2)
00025 {
00026 vil3d_gauss_reduce(src.image(), dst.image(), work1.image(), work2.image());
00027
00028 vimt3d_transform_3d scaling;
00029 scaling.set_zoom_only(0.5, 0.5, 0.5, 0.0, 0.0, 0.0);
00030 dst.set_world2im(scaling * src.world2im());
00031 }
00032
00033
00034
00035
00036
00037 template<class T>
00038 void vimt3d_gauss_reduce(const vimt3d_image_3d_of<T>& src,
00039 vimt3d_image_3d_of<T>& dst)
00040 {
00041
00042 vimt3d_image_3d_of<T> work1;
00043 vimt3d_image_3d_of<T> work2;
00044 vimt3d_gauss_reduce(src, dst, work1, work2);
00045 }
00046
00047
00048 #endif // vimt3d_gauss_reduce_h_