22 #ifndef mia_core_shape_hh
23 #define mia_core_shape_hh
33 # define EXPORT_SHAPE __declspec(dllimport)
62 template <
template <
typename>
class T,
typename M>
75 typedef std::set< T<int>, less_then<T<int>>>
Flat;
87 typedef T<unsigned int>
Size;
105 typename Flat::size_type
size()
const;
The base class for all plug-in created object.
a generic class for morphological shapes
T< unsigned int > Size
the size type for the mask image
M Mask
the mask image type
void insert(const T< int > &p)
Flat::const_iterator const_iterator
iterator over the mask coordinate set
const_iterator begin() const
std::set< T< int >, less_then< T< int > > > Flat
const_iterator end() const
shape_type plugin_type
helper type for use of the class in TFactory
M::Super plugin_data
Obtain the data type that is used for the mask image from the template parameters.
T< int > value_type
the actual value type of the mask coordinates
Size get_size() const
returns the nD size of the mask
bool has_location(const T< int > &p) const
TShape()
standard constructor initialises the shape set
Flat::size_type size() const
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace
static const char * type_descr