Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_CLOSING_H
00002 #define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_CLOSING_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 #include <OpenTissue/core/containers/grid/util/grid_dilation.h>
00013 #include <OpenTissue/core/containers/grid/util/grid_erosion.h>
00014
00015 namespace OpenTissue
00016 {
00017 namespace grid
00018 {
00027 template<
00028 typename grid_type_in
00029 , typename real_type
00030 , typename grid_type_out
00031 >
00032 inline void closing(
00033 grid_type_in const & phi
00034 , real_type const & radius
00035 , real_type const & dt
00036 , grid_type_out & psi
00037 )
00038 {
00039 erosion(phi,radius,dt,psi);
00040 dilation(psi,radius,dt,psi);
00041 }
00042
00043 }
00044 }
00045
00046
00047 #endif