Function cras::copyChannelData
Defined in File cloud.hpp
Function Documentation
-
void cras::copyChannelData(const ::cras::Cloud &in, ::cras::Cloud &out, const ::std::string &fieldName)
Copy data belonging to the given field from
in
cloud toout
cloud.- Parameters:
in – [in] The input cloud.
out – [out] The ouptut cloud. It has to be resized to contain at least that many points as the input cloud. It also has to have the given field present already.
fieldName – [in] Name of the field whose data should be copied.
- Throws:
std::runtime_error – If the output cloud is smaller (in nr. of points) than the input cloud.
std::runtime_error – If the given field doesn’t exist in either of the clouds.