// file zerosearch.h #ifndef __ZEROSEARCH_H #define __ZEROSEARCH_H #include "Region.h" vector *zerosearch( vector &input, int edge = 1, // search for transitions on rising edge=1, -1:falling unsigned int step = 4, // search in steps of step int VerbosityLevel = 1 // 1 means ... just normal warings are output. ); size_t ShiftRegionBy(vector &src, int Shift, int VerbosityLevel=0); size_t EnlargeRegion(vector &src, int Left, int Right, int VerbosityLevel=0); size_t findAbsMaxInRegions( vector ®ions, vector &data, int VerbosityLevel=0); bool compMaxPosOfRegions (Region a, Region b); size_t removeEqualMaxima( vector ®ions, int VerbosityLevel=0); size_t removeRegionOnFallingEdge( vector ®ions, unsigned int FallingEdgeWidth = 100, int VerbosityLevel=0); size_t removeRegionWithMaxOnEdge( vector ®ions, unsigned int EdgeWidth=3, int VerbosityLevel=0); size_t removeMaximaBelow( vector ®ions, float threshold = 2.0, int VerbosityLevel=0); size_t removeMaximaAbove( vector ®ions, float threshold= 14.0, int VerbosityLevel=0); Region FindAbsMax( vector ®ions, int VerbosityLevel=0); size_t findTimeOfHalfMaxLeft( vector ®ions, vector &data, float baseline = -0.5, int beginRisingEdge = 5, int endRisingEdge = 10, int VerbosityLevel = 1); #endif