|
degate 0.1.1
|
The class FilterKernel implemements a container for 2D filter kernel data. More...
#include <FilterKernel.h>

Public Member Functions | |
| FilterKernel (unsigned int _columns, unsigned int _rows) | |
| virtual | ~FilterKernel () |
| unsigned int | get_columns () const |
| unsigned int | get_rows () const |
| unsigned int | get_center_row () const |
| unsigned int | get_center_column () const |
| double | get (int column, int row) const |
| void | set (int column, int row, double val) |
| void | print () const |
Private Attributes | |
| unsigned int | columns |
| unsigned int | rows |
| std::vector< double > | data |
The class FilterKernel implemements a container for 2D filter kernel data.
Definition at line 37 of file FilterKernel.h.
| degate::FilterKernel::FilterKernel | ( | unsigned int | _columns, |
| unsigned int | _rows | ||
| ) | [inline] |
Definition at line 45 of file FilterKernel.h.
| virtual degate::FilterKernel::~FilterKernel | ( | ) | [inline, virtual] |
Definition at line 51 of file FilterKernel.h.
{}
| double degate::FilterKernel::get | ( | int | column, |
| int | row | ||
| ) | const [inline] |
| unsigned int degate::FilterKernel::get_center_column | ( | ) | const [inline] |
Definition at line 65 of file FilterKernel.h.
References columns.
Referenced by degate::GaussianBlur::GaussianBlur(), and degate::LoG::LoG().
{
return columns >> 1;
}

| unsigned int degate::FilterKernel::get_center_row | ( | ) | const [inline] |
Definition at line 61 of file FilterKernel.h.
References rows.
Referenced by degate::GaussianBlur::GaussianBlur(), and degate::LoG::LoG().
{
return rows >> 1;
}

| unsigned int degate::FilterKernel::get_columns | ( | ) | const [inline] |
Definition at line 53 of file FilterKernel.h.
References columns.
Referenced by degate::GaussianBlur::GaussianBlur(), and degate::LoG::LoG().
{
return columns;
}

| unsigned int degate::FilterKernel::get_rows | ( | ) | const [inline] |
Definition at line 57 of file FilterKernel.h.
References rows.
Referenced by degate::GaussianBlur::GaussianBlur(), and degate::LoG::LoG().
{
return rows;
}

| void degate::FilterKernel::print | ( | ) | const [inline] |
| void degate::FilterKernel::set | ( | int | column, |
| int | row, | ||
| double | val | ||
| ) | [inline] |
unsigned int degate::FilterKernel::columns [private] |
Definition at line 40 of file FilterKernel.h.
Referenced by get(), get_center_column(), get_columns(), print(), and set().
std::vector<double> degate::FilterKernel::data [private] |
Definition at line 41 of file FilterKernel.h.
unsigned int degate::FilterKernel::rows [private] |
Definition at line 40 of file FilterKernel.h.
Referenced by get_center_row(), get_rows(), and print().
1.7.4