- Added a local maximum search for 2D detectors in support of peak

search for TRICS
This commit is contained in:
cvs
2001-11-02 15:31:49 +00:00
parent 3c916c9a7d
commit 6c5db4ffd0
10 changed files with 892 additions and 30 deletions

37
lomax.h Normal file
View File

@ -0,0 +1,37 @@
/*-------------------------------------------------------------------------
L o c a l M a x i m u m
This is a module for searching a local maximum in a 2D histogram as
collected at TRICS.
copyright: see copyright.h
Mark Koennecke, November 2001
-------------------------------------------------------------------------*/
#ifndef LOCALMAXIMUM
#define LOCALMAXIMUM
#include "obpar.h"
typedef struct __LOMAX *pLoMax;
int LoMaxAction(SConnection *pCon, SicsInterp *pSics,
void *pData, int argc, char *argv[]);
int LoMaxFactory(SConnection *pCon, SicsInterp *pSics,
void *pData, int argc, char *argv[]);
int testLocalMaximum(int *iData, int xsize, int ysize,
int i, int j,
int window, int threshold, int steepness,
int *intensity);
int calculateCOG(int *iData, int xsize, int ysize,
int *i, int *j, int *intensity,
int cogWindow,
float contour);
#endif