#include <ConvolutionMask.h>
Inheritance diagram for prapi::ConvolutionMask< T >:

In addition to the data, it contains coordinates for center point and a divisor.
Public Methods | |
| ConvolutionMask (int size=1) | |
| All constructors will initially set the origin of the mask to its center. | |
| ConvolutionMask (int rows, int columns) | |
| Constructor which makes empty mask. | |
| ConvolutionMask (const util::Matrix< T > &mat) | |
| Constructor which makes empty mask. | |
| ConvolutionMask (const ConvolutionMask &other) | |
| The copy constructor. | |
| ConvolutionMask (int rows, int columns, T *initialData) | |
| Constructor which takes the size of mask and the data array. | |
| ConvolutionMask & | operator= (const ConvolutionMask &other) |
| Substitution operator. | |
| ConvolutionMask & | operator= (const T value) |
| Set the value for all the entries of ConvolutionMask. | |
| graphics::Point< int > | getOrigin (void) const |
| Get the origin of the mask. | |
| graphics::Point< int > & | origin (void) |
| Get the origin of the mask. | |
| void | setOrigin (const graphics::Point< int > &origin) |
| Set the Origin. | |
| T | getDivisor (void) const |
| Get the divisor. | |
| T & | divisor (void) |
| Get the divisor reference. | |
| void | setDivisor (T divisor) |
| Set the divisor. | |
|
||||||||||
|
Get the divisor. When convolving an image, the convolution result is divided by this value. It is thus possible to use fractions in integer-valued convolutions also. The default value is 1. |
|
||||||||||
|
Get the origin of the mask. This is needed only if the mask is not symmetric. |
|
||||||||||
|
Get the origin of the mask. This is needed only if the mask is not symmetric. |