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

Function threshold

test/2d/test_2d.cpp:251–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void threshold(pcl::PointCloud<pcl::PointXYZI>::Ptr &cloud, float thresh){
252 for(std::size_t i = 0;i < cloud->height;i++){
253 for(std::size_t j = 0;j < cloud->width;j++){
254 if((*cloud)(j,i).intensity > thresh)
255 (*cloud)(j,i).intensity = 1;
256 else
257 (*cloud)(j,i).intensity = 0;
258 }
259 }
260}
261
262TEST(Morphology, erosion)
263{

Callers 2

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected