21#ifndef mia_2d_morphshape_hh
22#define mia_2d_morphshape_hh
51 typedef std::shared_ptr<C2DMorphShape>
Pointer;
T2DImage< bool > C2DBitImage
2D image with binary values
std::shared_ptr< C2DShape > P2DShape
Pointer type of the C2DShape.
TShape< T2DVector, C2DBitImage > C2DShape
2D shape class, see also TShape
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
const C2DShape & get_background_mask() 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
const C2DShape & get_foreground_mask() const
C2DMorphShape plugin_type
helper type for plug-in handling
C2DImage plugin_data
helper type for plug-in handling
static const char * type_descr
helper string for plug-in handling
The base class for all plug-in created object.
T2DVector< int > value_type
#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.