| 346 | |
| 347 | template <typename PointT> |
| 348 | void |
| 349 | Morphology<PointT>::structuringElementRectangle(pcl::PointCloud<PointT>& kernel, |
| 350 | const int height, |
| 351 | const int width) |
| 352 | { |
| 353 | kernel.height = height; |
| 354 | kernel.width = width; |
| 355 | kernel.resize(height * width); |
| 356 | for (std::size_t i = 0; i < kernel.size(); ++i) |
| 357 | kernel[i].intensity = 1; |
| 358 | } |
| 359 | |
| 360 | template <typename PointT> |
| 361 | void |