24 #ifndef CPEAK_INTERPBILIN
25 #define CPEAK_INTERPBILIN
48 std::string class_name;
49 int m_neighb, m_interpFactor;
50 std::vector<T> m_posInt;
55 class_name =
"Cpeak_interpBiLin";
60 virtual void sub_pixel(CImg<T> &img)
65 for (
int i=0; i<this->m_pos.size(); i++){m_posInt.push_back(this->m_pos[i]);}
67 CImg<T> imgC = interp(img);
75 CImg<T> interp(CImg<T> img)
80 return img.crop(this->m_pos[0]-m_neighb, this->m_pos[1]-m_neighb, this->m_pos[2]-m_neighb,0, this->m_pos[0]+m_neighb, this->m_pos[1]+m_neighb, this->m_pos[2]+m_neighb,0,
"false").resize(-m_interpFactor*100,-m_interpFactor*100,-m_interpFactor*100,-100,3);
84 return img.crop(this->m_pos[0]-m_neighb, this->m_pos[1]-m_neighb, 0,0,this->m_pos[0]+m_neighb, this->m_pos[1]+m_neighb, 0,0,
"false").resize(-m_interpFactor*100,-m_interpFactor*100,-100,-100,3);
92 for (
int i=0; i<m_posInt.size(); i++)
94 (*this).m_pos[i] = m_posInt[i]-m_neighb + (*this).m_pos[i]/(double)m_interpFactor;
Definition: Cpeak_subPix.h:42
Definition: Cpeak_interpBiLin.h:43
virtual void peak_detection(CImg< T > &img)
Definition: Cpeak_max.h:60