diff --git a/examples/RGBDMapping/MapBuilder.h b/examples/RGBDMapping/MapBuilder.h index 38f9c9da..282cabc3 100644 --- a/examples/RGBDMapping/MapBuilder.h +++ b/examples/RGBDMapping/MapBuilder.h @@ -165,14 +165,16 @@ private slots: else if(iter->first == stats.refImageId() && stats.getSignature().id() == iter->first) { + Signature s = stats.getSignature(); + s.uncompressData(); // make sure data is uncompressed // Add the new cloud pcl::PointCloud::Ptr cloud = util3d::cloudFromDepthRGB( - stats.getSignature().getImageRaw(), - stats.getSignature().getDepthRaw(), - stats.getSignature().getDepthCx(), - stats.getSignature().getDepthCy(), - stats.getSignature().getDepthFx(), - stats.getSignature().getDepthFy(), + s.getImageRaw(), + s.getDepthRaw(), + s.getDepthCx(), + s.getDepthCy(), + s.getDepthFx(), + s.getDepthFy(), 8); // decimation if(cloud->size())