Fawkes API  Fawkes Development Version
firevision::FilterSobel Class Reference

Sobel filter. More...

#include <>>

Inheritance diagram for firevision::FilterSobel:

List of all members.

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.

Detailed Description

Sobel filter.

Author:
Tim Niemueller

Constructor & Destructor Documentation

firevision::FilterSobel::FilterSobel ( orientation_t  ori = ORI_HORIZONTAL)

Constructor.

Parameters:
oriedge orientation

Definition at line 44 of file sobel.cpp.


Member Function Documentation

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::shrink_region(), firevision::Filter::src_roi, firevision::Filter::dst_roi, firevision::ROI::width, firevision::ROI::height, firevision::Filter::ori, firevision::Filter::src, firevision::ROI::line_step, firevision::ROI::start, fawkes::point_t::x, firevision::ROI::pixel_step, firevision::Filter::dst, fawkes::point_t::y, and generate_kernel().

void firevision::FilterSobel::generate_kernel ( int *  k,
orientation_t  ori 
) [virtual]

Generate a sobel kernel for the given orientation.

Parameters:
kmatrix for the kernel of size 3x3, contains three lines concatenated into an one dimensional array.
orirequested orientation of the filter

Definition at line 56 of file sobel.cpp.

Referenced by apply().


The documentation for this class was generated from the following files: