Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_OPENING_H
00002 #define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_OPENING_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 {
00019
00028 template<
00029 typename grid_type_in
00030 , typename real_type
00031 , typename grid_type_out
00032 >
00033 inline void opening(
00034 grid_type_in const & phi
00035 , real_type const & radius
00036 , real_type const & dt
00037 , grid_type_out & psi
00038 )
00039 {
00040 dilation(phi,radius,dt,psi);
00041 erosion(psi,radius,dt,psi);
00042 }
00043
00044 }
00045 }
00046
00047
00048 #endif