Functions
contrib/gel/vifa/vifa_histogram.cxx File Reference
#include "vifa_histogram.h"
#include <vcl_algorithm.h>
#include <vcl_cmath.h>
#include <vcl_iostream.h>
#include <vcl_fstream.h>
#include <vcl_cstdio.h>

Go to the source code of this file.

Functions

float GetExtendedCount (int bin, int n_bins, float *cnts, bool cyclic)
 Provides the correct values for histogram counts when the bin index extends outside the valid range of the counts array.

Detailed Description

Definition in file vifa_histogram.cxx.


Function Documentation

float GetExtendedCount ( int  bin,
int  n_bins,
float *  cnts,
bool  cyclic 
) [inline]

Provides the correct values for histogram counts when the bin index extends outside the valid range of the counts array.

This function permits easy array access logic for the NonMaximumSuppression algorithm. The cyclic flag indicates that the counts array index is circular, i.e, cnts[0] equivalent to cnts[n_bins]

Definition at line 494 of file vifa_histogram.cxx.