We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 061f793 + 883f6c5 commit e34acbfCopy full SHA for e34acbf
search/include/pcl/search/impl/organized.hpp
@@ -350,14 +350,14 @@ pcl::search::OrganizedNeighbor<PointT>::estimateProjectionMatrix ()
350
std::vector<int> indices;
351
indices.reserve (input_->size () >> (pyramid_level_ << 1));
352
353
- for (unsigned yIdx = 0, idx = 0; yIdx < input_->height; yIdx += ySkip, idx += input_->width * (ySkip - 1))
+ for (unsigned yIdx = 0, idx = 0; yIdx < input_->height; yIdx += ySkip, idx += input_->width * ySkip)
354
{
355
- for (unsigned xIdx = 0; xIdx < input_->width; xIdx += xSkip, idx += xSkip)
+ for (unsigned xIdx = 0, idx2 = idx; xIdx < input_->width; xIdx += xSkip, idx2 += xSkip)
356
357
- if (!mask_ [idx])
+ if (!mask_ [idx2])
358
continue;
359
360
- indices.push_back (idx);
+ indices.push_back (idx2);
361
}
362
363
0 commit comments