| 249 | } |
| 250 | |
| 251 | void 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 | |
| 262 | TEST(Morphology, erosion) |
| 263 | { |
no outgoing calls
no test coverage detected