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.
Definition at line 33 of file segenerator.h.
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::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::FvRawWriter::write(), and firevision::PNGWriter::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().