#include <matrixUtil.h>
Public Member Functions | |
void | setSize (I width_, I height_) |
Sets the size of pixels, optionally allocates memory. | |
void | free (bool freePixels=true) |
Frees the memory. | |
void | summers_makeValid () const |
Just validates both summers (if needed). | |
void | summers_invalidate () |
Justs invalidates both summers (to be called after changes in the pixel-matrix). | |
BSumRes | getSums (const Block &block) const |
A shortcut for getting sums of a block. | |
BSumRes | getSums (I x0, I y0, I xend, I yend) const |
Gets both sums of a nonempty rectangle in pixels, the summer isn't validated. | |
SumT | getValueSum (I x0, I y0, I xend, I yend) const |
Gets only the sum of values (not the sum of squares). | |
Public Attributes | |
I | width |
The width of pixels. | |
I | height |
The height of pixels. | |
MatrixSlice< PixT > | pixels |
The matrix of pixels. | |
BSummer | summer |
Summer for values and squares of pixels. | |
bool | sumsValid |
Indicates whether the summer values are valid. |
Definition at line 188 of file matrixUtil.h.