21 #ifndef mia_2d_morphshape_hh
22 #define mia_2d_morphshape_hh
51 typedef std::shared_ptr<C2DMorphShape>
Pointer;
std::shared_ptr< C2DShape > P2DShape
Pointer type of the C2DShape.
This is the base class for 2D images that can hold generic pixel data.
a class for advanced morphological filter masks
C2DMorphShape(P2DShape foreground_mask, P2DShape background_mask)
void add_pixel(const value_type &pixel, bool foreground)
std::shared_ptr< C2DMorphShape > Pointer
The pointer type of the class.
C2DMorphShape rotate_by_90() const
void add_pixel(int x, int y, bool foreground)
C2DShape::value_type value_type
the value type based on the shape representation
C2DMorphShape()
default constructor
C2DMorphShape plugin_type
helper type for plug-in handling
C2DImage plugin_data
helper type for plug-in handling
const C2DShape & get_foreground_mask() const
const C2DShape & get_background_mask() const
static const char * type_descr
helper string for plug-in handling
The base class for all plug-in created object.
This is the template version of a 2D image that is used for holding real data.
a generic class for morphological shapes
T< int > value_type
the actual value type of the mask coordinates
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define NS_MIA_END
conveniance define to end the mia namespace
size_t EXPORT_2D morph_hit_and_miss_2d(C2DBitImage &target, const C2DBitImage &source, const C2DMorphShape &shape)
size_t EXPORT_2D morph_thinning_2d(C2DBitImage &target, const C2DBitImage &source, const C2DMorphShape &shape)
C2DMorphShape::Pointer P2DMorphShape
The pointer type for the morp shape class.