Esempio n. 1
0
  float GetViewMapGradientNormF0D::operator()(Interface0DIterator& iter){
    SteerableViewMap *svm = Canvas::getInstance()->getSteerableViewMap();
    float pxy = svm->readCompleteViewMapPixel(_level,(int)iter->getProjectedX(), (int)iter->getProjectedY());
    float gx = svm->readCompleteViewMapPixel(_level,(int)iter->getProjectedX()+_step, (int)iter->getProjectedY())
      - pxy;
    float gy = svm->readCompleteViewMapPixel(_level,(int)iter->getProjectedX(), (int)iter->getProjectedY()+_step)
      - pxy;
	float f = Vec2f(gx,gy).norm();
    return f;
  }
Esempio n. 2
0
 float ReadCompleteViewMapPixelF0D::operator()(Interface0DIterator& iter) {
   SteerableViewMap *svm = Canvas::getInstance()->getSteerableViewMap();
   float v = svm->readCompleteViewMapPixel(_level,(int)iter->getProjectedX(), (int)iter->getProjectedY());
   return v;
 }
Esempio n. 3
0
float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y)
{
	SteerableViewMap *svm = Canvas::getInstance()->getSteerableViewMap();
	return svm->readCompleteViewMapPixel(level, x, y);
}