SummedMatrix< SumT, PixT, I > Struct Template Reference

Structure for a block of pixels - also contains summers and dimensions. More...

#include <matrixUtil.h>

Inheritance diagram for SummedMatrix< SumT, PixT, I >:

Inheritance graph
[legend]
Collaboration diagram for SummedMatrix< SumT, PixT, I >:

Collaboration graph
[legend]

List of all members.

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

width
 The width of pixels.
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.


Detailed Description

template<class SumT, class PixT, class I = PtrInt>
struct SummedMatrix< SumT, PixT, I >

Structure for a block of pixels - also contains summers and dimensions.

Definition at line 188 of file matrixUtil.h.


The documentation for this struct was generated from the following file:

Generated on Thu Aug 6 22:33:15 2009 for Fractal Image Compressor by  doxygen 1.5.8