ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
copy.cpp File Reference
#include <Utils/copy.h>
#include <ecvPointCloud.h>
#include <ecvScalarField.h>
Include dependency graph for copy.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ copyRGBColors()

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

◆ copyScalarFields()

void 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().