22using base::AttributePointCloud;
27 for (
auto& i : mask_) {
37 if (target_cloud ==
nullptr) {
41 indices_.reserve(mask_.size());
42 for (
size_t i = 0; i < mask_.size(); ++i) {
44 indices_.push_back(
static_cast<int>(i));
52 indices->
indices.reserve(mask_.size());
53 for (
size_t i = 0; i < mask_.size(); ++i) {
55 indices->
indices.push_back(
static_cast<int>(i));
61 for (
auto& i : mask_) {
73 for (
auto&
id : indices_of_indices.
indices) {
74 mask_[indices.
indices[id]] = value;
85 for (
auto&
id : indices_of_indices.
indices) {
95 for (
const auto& i : mask_) {
97 rhs->mask_.push_back(i);
103 for (
auto& i : mask_) {
104 if (i == source_value) {
void CopyPointCloud(const AttributePointCloud< PointT > &rhs, const PointIndices &indices)
void RemoveIndices(const base::PointIndices &indices)
void ResetValue(int source_value, int target_value)
void AddIndices(const base::PointIndices &indices, int value=1)
void GetValidCloud(const base::AttributePointCloud< base::PointF > &source_cloud, base::AttributePointCloud< base::PointF > *target_cloud) const
std::vector< int > GetValidIndices()
size_t ValidIndicesCount() const
void AddIndicesOfIndices(const base::PointIndices &indices, const base::PointIndices &indices_of_indices, int value=1)
void RemoveIndicesOfIndices(const base::PointIndices &indices, const base::PointIndices &indices_of_indices)
void GetValidMask(CloudMask *rhs) const
std::vector< int > indices