35 using namespace Eigen;
41 const std::map<int, rtabmap::SensorData> &
sequence,
42 const std::map<int, rtabmap::Transform> & trajectory,
43 const pcl::PointCloud<pcl::PointXYZ>::Ptr & map,
45 double coneStdevThresh)
51 const cv::Size & imageSize =
sequence.
begin()->second.cameraModels()[0].imageSize();
60 size_t idx =
iter->first;
61 std::map<int, rtabmap::SensorData>::const_iterator ster =
sequence.find(idx);
65 ster->second.uncompressDataConst(0, &depthImage);
69 mapDepth = projector.
estimateMapDepth(map,
iter->second.inverse(), depthImage, coneRadius, coneStdevThresh);
70 counts =
model.accumulate(mapDepth, depthImage);
73 UINFO(
"counts=%d", (
int)counts);