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