|
Isis 3 Programmer Reference
|
9 #include "SpecialPixel.h"
156 QuickFilter(
const int ns,
const int width,
const int height);
159 double Average(
const int index);
161 int Count(
const int index);
173 void AddLine(
const double *buf);
177 void SetMinMax(
const double minimum,
const double maximum);
int Samples() const
Returns the number of samples in a line.
int p_lastCount
See p_lastSum.
int p_halfHeight
This is half the height of the boxcar rounded down to the next integer since the boxcar is always odd...
int p_linesAdded
This is used to keep track of the number of lines added.
double Average(const int index)
Computes and returns the boxcar average at pixel index (zero based).
void SetMinMax(const double minimum, const double maximum)
This method is used to set the minimum/maximum valid values.
void RemoveLine(const double *buf)
Remove an array of doubles from the accumulators and counters.
void Compute(const int index)
Computes the moving boxcar sums and counts for the Average, Variance, and count methods.
void AddLine(const double *buf)
Add an array of doubles to the accumulators and counters.
double Low() const
Returns the lowest pixel value included in filtering computations.
int p_width
This is the width of the boxcar.
int HalfWidth() const
Returns the half the width of the boxcar rounded down because the boxcar size is odd.
int * p_counts
This is identical to p_sums with the exception that it keeps count of the number of valid pixels in p...
double p_minimum
Minimum valid pixel value.
Container for boxcar statistics.
int HalfHeight() const
Returns the half the height of the boxcar rounded down because the boxcar size is odd.
int MinimumPixels() const
Returns the minimum number of pixels which need to be valid inside the boxcar.
QuickFilter(const int ns, const int width, const int height)
Constructs a QuickFilter object with accumulators and counters set to zero.
int Height() const
Returns the height of the boxcar.
double Variance(const int index)
Computes and returns the boxcar variance at pixel index (zero based).
int p_ns
This value is initialized in the constructor.
double p_lastSumsqr
See p_lastSum.
double p_maximum
Maximum valid pixel value.
void SetMinimumPixels(const int minimumValid)
This method is used to set the minimum number of valid pixels in the boxcar.
void Reset()
Reset all accumulators and counters to zero.
int p_height
This is the height of the boxcar.
double High() const
Returns the highest pixel value included in filtering computations.
int p_lastIndex
This is used to keep track of the last index passed into the Average, Variance and/or count method.
int p_halfWidth
This is half the width of the boxcar rounded down to the next integer since the boxcar is always odd.
double * p_sums
Sum accumulator for each column/sample.
double * p_sumsqrs
This is identical to p_sums with the exception that the pixel values are squared before summing occur...
int Count(const int index)
Computes and returns the number of valid pixels in the boxcar at pixel index (zero based).
~QuickFilter()
Destroys the QuickFilter object.
double p_lastSum
The last sum of a full boxcar.
int p_minimumPixels
The minimum number of pixels in the boxcar which must be valid (not special and inside p_minimum/p_ma...
This is free and unencumbered software released into the public domain.
int Width() const
Returns the width of the boxcar.