00001 #include "NormalBlobDetector.h"
00002
00003
00004 NormalBlobDetector::NormalBlobDetector(const PeakFinder* peak, unsigned int scales, double sigma, double step, unsigned int window, SmoothingFilterFamily filterType):
00005 NormalDetector(peak, scales, sigma, step, window, filterType)
00006 {
00007 computeDifferentialBank();
00008 }
00009
00010 void NormalBlobDetector::computeDifferentialBank(){
00011 m_differentialBank.resize(m_scaleNumber, std::vector<double>(3));
00012 for(unsigned int i = 0; i < m_differentialBank.size(); i++){
00013 m_differentialBank[i][0] = m_scales[i]*1;
00014 m_differentialBank[i][1] = -m_scales[i]*2;
00015 m_differentialBank[i][2] = m_scales[i]*1;
00016 }
00017 }
00018