Mercurial > hg > svcore
diff base/FFTCache.h @ 131:69d50575c52a
* Various fft server improvements, including the ability to pick out data from
an existing fft cache at a smaller increment or larger fft size rather than
recalculating it (if appropriate)
author | Chris Cannam |
---|---|
date | Thu, 29 Jun 2006 16:16:49 +0000 |
parents | 4e38a29c13fc |
children | 0aafdda005ce |
line wrap: on
line diff
--- a/base/FFTCache.h Wed Jun 28 15:42:04 2006 +0000 +++ b/base/FFTCache.h Thu Jun 29 16:16:49 2006 +0000 @@ -48,16 +48,6 @@ virtual void suspend() { } - bool isLocalPeak(size_t x, size_t y) const { - float mag = getMagnitudeAt(x, y); - if (y > 0 && mag < getMagnitudeAt(x, y - 1)) return false; - if (y < getHeight()-1 && mag < getMagnitudeAt(x, y + 1)) return false; - return true; - } - bool isOverThreshold(size_t x, size_t y, float threshold) const { - return getMagnitudeAt(x, y) > threshold; - } - protected: FFTCache() { } };