示例#1
0
  void PairWiseDrawer::drawMatch(const Match& m, const Color3ub& c, bool drawLine) const
  {
    drawFeature(0, m.x(), c);
    drawFeature(1, m.y(), c);

    if(drawLine)
    {
      Vector2f a,b;
      a = scale(0)*m.posX(); b = scale(1)*(m.posY()+offF(1));
      DO::drawLine(a, b, c);
    }
  }
示例#2
0
文件: Match.hpp 项目: gumpliao/sara
 //! Key match equality.
 bool operator==(const Match& m) const
 {
   return (x() == m.x() && y() == m.y());
 }