Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Core::Array::Trait::NgbIntegral Class Reference

Neighbourhood functor for making 'integral' images. More...

#include <NgbIntegral.h>

List of all members.

Public Types

typedef Array::Pattern::TagLoop IteratorCategory
 Loop version.
typedef Array::Pattern::Tag1Phase PhaseCategory
 1 phase

Public Member Functions

 NgbIntegral ()
 Constructor.
 ~NgbIntegral ()
 Destructor.
int Width ()
 Width of the neighbourhood.
int Height ()
 Height of the neighbourhood.
void Init (int x, int y, const double &value)
 Initialization.
void NextEl (int m, int n, const double &value)
 Processing one pixel.
double Result () const
 Produce the result value.

Private Attributes

double mValue
 ILOG_VAR_DEC


Detailed Description

Neighbourhood functor for making 'integral' images.

Note:
For now only for Scalar Real64 images.

Border of the image must be filled with 0.

The operation has a neighbourhood of 2x2 pixels: a - b | | c - d The function returns d+c+b-a. When doing the Ngb op inplace this results in an 'integral image': a image where at each pixel is the sum of al pixels above and left of that pixel in the original image.

Definition at line 31 of file NgbIntegral.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:04:37 2010 for ImpalaSrc by  doxygen 1.5.1