|
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. | |
| static unsigned char * | square (unsigned int width, unsigned int height) |
| Generate square structuring element. | |
| static void | drawSE (unsigned char *yuv422planar_buffer, unsigned char *mask, unsigned int width, unsigned int height) |
| Draw structuring element. | |
| static void | drawSEbw (unsigned char *yuv422planar_buffer, unsigned char *mask, unsigned int width, unsigned int height) |
| Draw structuring element. | |
Basic generators for structuring elements for morphological filters.
| void firevision::SEGenerator::drawSE | ( | unsigned char * | yuv422planar_buffer, |
| unsigned char * | mask, | ||
| unsigned int | width, | ||
| unsigned int | height | ||
| ) | [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.
| void firevision::SEGenerator::drawSEbw | ( | unsigned char * | yuv422planar_buffer, |
| unsigned char * | mask, | ||
| unsigned int | width, | ||
| unsigned int | height | ||
| ) | [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.
| unsigned char * firevision::SEGenerator::linear | ( | unsigned int | width, |
| unsigned int | height, | ||
| unsigned int * | proposed_center_x, | ||
| unsigned int * | proposed_center_y, | ||
| float | slope_angle_rad | ||
| ) | [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::set_buffer(), firevision::Drawer::set_color(), fawkes::normalize_mirror_rad(), firevision::Drawer::draw_line(), firevision::Writer::set_dimensions(), firevision::PNGWriter::set_buffer(), firevision::Writer::set_filename(), firevision::PNGWriter::write(), and firevision::FvRawWriter::write().
| unsigned char * firevision::SEGenerator::square | ( | unsigned int | width, |
| unsigned int | height | ||
| ) | [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().