MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / structuringElementRectangle

Method structuringElementRectangle

2d/include/pcl/2d/impl/morphology.hpp:348–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346
347template <typename PointT>
348void
349Morphology<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
360template <typename PointT>
361void

Callers 1

TESTFunction · 0.80

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64