|
| Filter (int rows, int cols) |
| Construct filter of specified size, defaults to zero by zero. More...
|
|
| Filter (const Matrix &src) |
| Construct filter from matrix. More...
|
|
| Filter (const char *fname) |
| Read filter from a named file. More...
|
|
| Filter (const std::string &fname) |
| Read filter from a named file. More...
|
|
| Filter (const Filter &src) |
| Copy ctor, performs a deep copy. More...
|
|
| ~Filter () |
| Destroy filter's memory. More...
|
|
void | swap (Filter &other) |
| Swap the implementation of two filters. More...
|
|
int | get_num_rows () const |
| Return the number of rows in the filter. More...
|
|
int | get_num_cols () const |
| Return the number of columns in the filter. More...
|
|
Filter & | operator= (const kjb::Matrix &src) |
| Assignment of a matrix to a filter. More...
|
|
Filter & | operator= (const Filter &src) |
| Deep copy assignment. More...
|
|
Value_type & | operator() (int row, int col) |
| Lvalue value access at given row & column, no bounds-checking. More...
|
|
Value_type | operator() (int row, int col) const |
| Rvalue value access at given row & column, no bounds-checking. More...
|
|
void | check_bounds (int row, int col) const |
| Test whether row, column coordinates are valid. More...
|
|
Value_type & | at (int row, int col) |
| Access value lvalue at row, column coordinates. More...
|
|
Value_type | at (int row, int col) const |
| Access value rvalue at row, column coordinates. More...
|
|
void | write (std::string fname) |
| Write to a file. More...
|
|
Filter class.
This class represents an image filter. It is meant to be used to convolve with other filters and with images. The reason I made this class (as opposed to simply using a Matrix) is to be able to overload the * operator to use as a convolution. More generally, a filter is not really a matrix, but a signal, so it should not have the functionality of a matrix.