00001 #include "NormalEdgeDetector.h"
00002
00003
00004 NormalEdgeDetector::NormalEdgeDetector(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 NormalEdgeDetector::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] = -sqrt(m_scales[i])*0.5;
00014 m_differentialBank[i][1] = 0;
00015 m_differentialBank[i][2] = sqrt(m_scales[i])*0.5;
00016 }
00017 }
00018