Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

IntensityDeviation.cc File Reference

#include "fl/convolve.h"

Defines

#define addup(size)

Define Documentation

#define addup size   
 

Value:

{ \
        size * pixel = (size *) image.buffer; \
        size * end   = pixel + image.width * image.height; \
        if (ignoreZeros) \
        { \
          while (pixel < end) \
          { \
                if (*pixel != 0) \
                { \
                  float t = *pixel - average; \
                  variance += t * t; \
                  count++; \
                } \
                pixel++; \
          } \
        } \
        else \
        { \
          while (pixel < end) \
          { \
                float t = *pixel++ - average; \
                variance += t * t; \
          } \
          count = image.width * image.height; \
        } \
  }


Generated on Thu Dec 9 17:13:25 2004 for fl by doxygen1.2.18