Sobel filter. More...
#include <>>
Public Member Functions | |
FilterSobel (orientation_t ori=ORI_HORIZONTAL) | |
Constructor. | |
virtual void | generate_kernel (int *kernel, orientation_t ori) |
Generate a sobel kernel for the given orientation. | |
virtual void | apply () |
Apply the filter. |
Sobel filter.
Definition at line 38 of file sobel.h.
firevision::FilterSobel::FilterSobel | ( | orientation_t | ori = ORI_HORIZONTAL |
) |
void firevision::FilterSobel::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 109 of file sobel.cpp.
References firevision::Filter::dst, firevision::Filter::dst_roi, generate_kernel(), firevision::ROI::height, firevision::ROI::line_step, firevision::Filter::ori, firevision::ROI::pixel_step, firevision::Filter::shrink_region(), firevision::Filter::src, firevision::Filter::src_roi, firevision::ROI::start, firevision::ROI::width, fawkes::point_t::x, and fawkes::point_t::y.
void firevision::FilterSobel::generate_kernel | ( | int * | k, | |
orientation_t | ori | |||
) | [virtual] |