![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/SummedAreaTable.h>
Class for efficient box average using a summed area table. More...
Class for efficient box average using a summed area table.
Public Member Functions | |
SummedAreaTable (const SharedImage &im) | |
Constructor from a shared image. | |
~SummedAreaTable () | |
Destructor. | |
float | getSum (int *box, int channel=0) |
Compute sum within the box defined as (x_min, y_min, z_min, x_max, y_max, z_max) | |
TypedImage< float > * | getSummedAreaTable () |
Returns integral image and yields ownership. | |
Protected Member Functions | |
void | computeSummedAreaTable () |
template<typename T> | |
void | computeSummedAreaTable (const TypedImage< T > *image) |
float | summedAreaTable2D (int x, int y, int c=0) |
float | summedAreaTable3D (int x, int y, int z=0, int c=0) |
Protected Attributes | |
const SharedImage * | m_image |
std::unique_ptr< TypedImage< float > > | m_summedAreaTable |