Remove shapes from an image. More...
#include <>>
Public Member Functions | |
FilterShapeRemover () | |
Constructor. | |
virtual void | set_shape (Shape *shape) |
Set shape that is to be removed. | |
virtual void | set_margin (unsigned int margin) |
Set margin. | |
virtual void | apply () |
Apply the filter. |
Remove shapes from an image.
Definition at line 37 of file shape_remover.h.
firevision::FilterShapeRemover::FilterShapeRemover | ( | ) |
Constructor.
Definition at line 39 of file shape_remover.cpp.
void firevision::FilterShapeRemover::apply | ( | ) | [virtual] |
Apply the filter.
Apply the filter to the given source and destination buffers with given width and height and orientation (ori may be ignored for some filters).
Implements firevision::Filter.
Definition at line 47 of file shape_remover.cpp.
References firevision::Filter::dst, firevision::Filter::dst_roi, firevision::ROI::get_roi_buffer_start(), firevision::ROI::height, firevision::Shape::isClose(), firevision::ROI::line_step, firevision::Shape::setMargin(), firevision::Filter::src, firevision::Filter::src_roi, and firevision::ROI::width.
void firevision::FilterShapeRemover::set_margin | ( | unsigned int | margin | ) | [virtual] |
Set margin.
margin | margin around shape to be close to a point. |
Definition at line 105 of file shape_remover.cpp.
void firevision::FilterShapeRemover::set_shape | ( | Shape * | shape | ) | [virtual] |
Set shape that is to be removed.
shape | shape to remove |
Definition at line 115 of file shape_remover.cpp.