GUI/ExportClouds: fixed color of scans having RGB instead of intensity.

This commit is contained in:
matlabbe
2022-01-19 16:59:43 -05:00
parent 5ec73bee8d
commit a56373f66d
2 changed files with 25 additions and 11 deletions

View File

@@ -138,7 +138,8 @@ private:
const std::map<int, std::pair<pcl::PointCloud<pcl::PointXYZRGB>::Ptr, pcl::IndicesPtr> > & cachedClouds,
const std::map<int, LaserScan> & cachedScans,
const ParametersMap & parameters,
bool & has2dScans) const;
bool & has2dScans,
bool & scansHaveRGB) const;
void saveClouds(const QString & workingDirectory, const std::map<int, Transform> & poses, const std::map<int, pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr> & clouds, bool binaryMode = true, const std::vector<std::map<int, pcl::PointXY> > & pointToPixels = std::vector<std::map<int, pcl::PointXY> >());
void saveMeshes(const QString & workingDirectory, const std::map<int, Transform> & poses, const std::map<int, pcl::PolygonMesh::Ptr> & meshes, bool binaryMode = true);
void saveTextureMeshes(const QString & workingDirectory, const std::map<int, Transform> & poses, std::map<int, pcl::TextureMesh::Ptr> & textureMeshes, const QMap<int, Signature> & cachedSignatures, const std::vector<std::map<int, pcl::PointXY> > & textureVertexToPixels);
@@ -150,6 +151,7 @@ private:
bool _canceled;
GainCompensator * _compensator;
const DBDriver * _dbDriver;
bool _scansHaveRGB;
};
}