CHoughWorkArray.h
//-----------------------------------------------------------------------------
// $Header: /tmp_mnt/asis/offline/ceres/cool/project/RCS/CHoughWorkArray.h,v 2.1 1996/10/04 08:42:58 voigt Exp $
//
// COOL Program Library
// Copyright (C) CERES collaboration, 1996
//
// Declarations for CHoughWorkArray class.
//
//-----------------------------------------------------------------------------
#ifndef CHOUGHWORKARRAY_H
#define CHOUGHWORKARRAY_H
#include "cool.h"
class CHoughWorkArray {
public:
CHoughWorkArray() { };
void zeroXY();
inline CBoolean CHoughWorkArray::isLocalMax(const int ix, const int iy)
{
short thisValue = xy[ix][iy];
CBoolean result = True;
if (xy[ix-1][iy-1] > thisValue ||
xy[ix ][iy-1] > thisValue ||
xy[ix+1][iy-1] > thisValue ||
xy[ix-1][iy ] > thisValue ||
xy[ix+1][iy ] > thisValue ||
xy[ix-1][iy+1] > thisValue ||
xy[ix ][iy+1] > thisValue ||
xy[ix+1][iy+1] > thisValue ) result = False;
return result;
}
public:
enum { minIndex = -20, maxIndex = 310 };
short xy[maxIndex-minIndex][maxIndex-minIndex];
};
#endif /* CHOUGHWORKARRAY_H */