Fawkes API
Fawkes Development Version
|
Basic generators for structuring elements for morphological filters. More...
#include <>>
Static Public Member Functions | |
static unsigned char * | linear (unsigned int width, unsigned int height, unsigned int *proposed_center_x, unsigned int *proposed_center_y, float slope_angle_rad) |
Generate linear structuring element. More... | |
static unsigned char * | square (unsigned int width, unsigned int height) |
Generate square structuring element. More... | |
static void | drawSE (unsigned char *yuv422planar_buffer, unsigned char *mask, unsigned int width, unsigned int height) |
Draw structuring element. More... | |
static void | drawSEbw (unsigned char *yuv422planar_buffer, unsigned char *mask, unsigned int width, unsigned int height) |
Draw structuring element. More... | |
Basic generators for structuring elements for morphological filters.
Definition at line 33 of file segenerator.h.
|
static |
Draw structuring element.
This draws the structuring element to an image buffer.
yuv422planar_buffer | image buffer |
mask | structuring element |
width | width of structuring element |
height | height of structuring element |
Definition at line 169 of file segenerator.cpp.
|
static |
Draw structuring element.
This draws the structuring element to a b/w image buffer.
yuv422planar_buffer | image buffer |
mask | structuring element |
width | width of structuring element |
height | height of structuring element |
Definition at line 190 of file segenerator.cpp.
|
static |
Generate linear structuring element.
width | width of structuring element |
height | height of structuring element |
proposed_center_x | contains the proposed x coordinate of the anchor upon return |
proposed_center_y | contains the proposed y coordinate of the anchor upon return |
slope_angle_rad | the slope of the line in radians |
Definition at line 60 of file segenerator.cpp.
References firevision::Drawer::draw_line(), fawkes::normalize_mirror_rad(), firevision::PNGWriter::set_buffer(), firevision::Drawer::set_buffer(), firevision::Drawer::set_color(), firevision::Writer::set_dimensions(), firevision::Writer::set_filename(), firevision::PNGWriter::write(), and firevision::FvRawWriter::write().
|
static |
Generate square structuring element.
width | width of structuring element |
height | height of structuring element |
Definition at line 153 of file segenerator.cpp.
Referenced by firevision::FilterGeodesicDilation::FilterGeodesicDilation(), and firevision::FilterGeodesicErosion::FilterGeodesicErosion().