ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
copy.h File Reference
#include <Utils/PCLCloud.h>
#include "qPCL.h"
#include <pcl/PointIndices.h>
Include dependency graph for copy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void QPCL_ENGINE_LIB_API copyScalarFields (const ccPointCloud *inCloud, ccPointCloud *outCloud, pcl::PointIndicesPtr &in2outMapping, bool overwrite=true)
 Makes a copy of all scalar fields from one cloud to another. More...
 
void QPCL_ENGINE_LIB_API copyRGBColors (const ccPointCloud *inCloud, ccPointCloud *outCloud, pcl::PointIndicesPtr &in2outMapping, bool overwrite=true)
 Makes a copy of RGB colors from one cloud to another. More...
 

Function Documentation

◆ copyRGBColors()

void QPCL_ENGINE_LIB_API copyRGBColors ( const ccPointCloud inCloud,
ccPointCloud outCloud,
pcl::PointIndicesPtr &  in2outMapping,
bool  overwrite = true 
)

◆ copyScalarFields()

void QPCL_ENGINE_LIB_API copyScalarFields ( const ccPointCloud inCloud,
ccPointCloud outCloud,
pcl::PointIndicesPtr &  in2outMapping,
bool  overwrite = true 
)

Makes a copy of all scalar fields from one cloud to another.

This algorithm simply copy the scalar fields from a cloud to another using the the mapping contained in a pcl::PointIndicesPtr.

Parameters
inCloudthe input cloud from which to copy scalars
outCloudthe output cloud in which to copy the scalar fields
in2outMappingindices of the input cloud for each point in the output
overwriteyou can chose to not overwrite existing fields

Definition at line 14 of file copy.cpp.

References ccPointCloud::addScalarField(), ccScalarField::computeMinAndMax(), cloudViewer::ScalarField::getName(), cloudViewer::PointCloudTpl< T >::getNumberOfScalarFields(), cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), cloudViewer::ScalarField::getValue(), name, CCShareable::release(), cloudViewer::ScalarField::resizeSafe(), cloudViewer::ScalarField::setValue(), ccDrawableObject::sfShown(), ccDrawableObject::showSF(), and cloudViewer::PointCloudTpl< T >::size().

Referenced by MLSSmoothingUpsampling::compute().