利用multimap管理像素对应的三维坐标点,将Point2t作为键,Point3t作为键值,因为存在计算误差,一个像素坐标对应多个键值的情况。
#include <iostream>
#include <map>
using namespace std;
struct Point2t
{
Point2t(double x_ , double y_)
{
x = x_ ;
y = y_ ;
}
Point2t(const Point2t &p2t)
{
this->x = p2t.x ;
this->y = p2t.y ;
}
bool operator <(const Point2t &p2t) const
{