|
libcrn
3.9.5
A document image processing library
|
A summed area table. More...
#include <CRNSummedAreaTable.h>
Public Member Functions | |
| SummedAreaTable (size_t w, size_t h) | |
| Constructor. More... | |
| SummedAreaTable (const SummedAreaTable &)=default | |
| SummedAreaTable (SummedAreaTable &&)=default | |
| SummedAreaTable & | operator= (const SummedAreaTable &)=default |
| SummedAreaTable & | operator= (SummedAreaTable &&)=default |
| T | GetValue (size_t x, size_t y) const |
| Gets the value of a bin. More... | |
| void | SetValue (size_t x, size_t y, T val) |
| Alters the value of a bin. More... | |
| T | GetSum (const crn::Rect &r) const |
| Gets the sum of the original pixels in a rectangle. More... | |
| T | GetSum (size_t x1, size_t y1, size_t x2, size_t y2) const |
| Gets the sum of the original pixels in a rectangle. More... | |
A summed area table.
A summed area table. Used to compute fast square sums in an image
Definition at line 41 of file CRNSummedAreaTable.h.
|
inline |
Constructor.
Definition at line 45 of file CRNSummedAreaTable.h.
|
default |
|
default |
|
inline |
Gets the sum of the original pixels in a rectangle.
| ExceptionDimension | the rectangle exceeds the image's dimensions |
| [in] | r | the rectangle to sum |
Definition at line 62 of file CRNSummedAreaTable.h.
|
inline |
Gets the sum of the original pixels in a rectangle.
| [in] | x1 | left border |
| [in] | y1 | top border |
| [in] | x2 | right border |
| [in] | y2 | bottom border |
Definition at line 77 of file CRNSummedAreaTable.h.
|
inline |
Gets the value of a bin.
Definition at line 53 of file CRNSummedAreaTable.h.
|
default |
|
default |
|
inline |
Alters the value of a bin.
Definition at line 55 of file CRNSummedAreaTable.h.
1.8.6