Skip to content

Commit d1de3e8

Browse files
FIX: naming of the cilantro wrap function changed to SmoothSegmentation
1 parent 47448fa commit d1de3e8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/diffCheck/segmentation/DFSegmentation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace diffCheck::segmentation
88
{
9-
std::vector<std::shared_ptr<geometry::DFPointCloud>> DFSegmentation::SegmentationPointCloud(
9+
std::vector<std::shared_ptr<geometry::DFPointCloud>> DFSegmentation::SmoothSegmentation(
1010
geometry::DFPointCloud &pointCloud,
1111
float voxelSize,
1212
float normalThresholdDegree,

src/diffCheck/segmentation/DFSegmentation.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ namespace diffCheck::segmentation
66
class DFSegmentation
77
{
88
public:
9-
/** @brief Downsamples and segments the point cloud using Cilantro's ConnectedComponentExtraction3f method
9+
/** @brief Downsamples and segments the point cloud using Cilantro's ConnectedComponentExtraction3f method. It uses the normals' variations to detect different parts in the point cloud.
1010
* @param pointCloud the point cloud to segment
1111
* @param voxelSize the voxel size for the downsampling of the point cloud. The point cloud is downsampled after the normal calculation. A lower number will result in a denser point cloud
1212
* @param normalThresholdDegree the normal threshold in degrees do differentiate segments. The higher the number, the more tolerent the segmentation will be to normal differences
1313
* @param minClusterSize the minimum cluster size to consider a segment. A lower number will discard smaller segments
1414
* @param useKnnNeighborhood if true, the neighborhood search will be done using the knnNeighborhoodSize, otherwise it will be done using radiusNeighborhoodSize
1515
* @param knnNeighborhoodSize the k nearest neighbors size for the "neighborhood search". This is used when useKnnNeighborhood is true. a higher number will result in smoother segmentation, but at the cost of computation time
1616
* @param radiusNeighborhoodSize the radius of the neighborhood size for the "radius search". This is used when useKnnNeighborhood is false. A higher number will result in smoother segmentation, but at the cost of computation time.
17-
* @return std::vector<geometry::DFPointCloud> the segmented point clouds
17+
* @return std::vector<std::shared_ptr<geometry::DFPointCloud>> the segmented point clouds
1818
*/
19-
static std::vector<std::shared_ptr<geometry::DFPointCloud>> SegmentationPointCloud(
19+
static std::vector<std::shared_ptr<geometry::DFPointCloud>> SmoothSegmentation(
2020
geometry::DFPointCloud &pointCloud,
2121
float voxelSize = 0.2,
2222
float normalThresholdDegree = 20,

src/diffCheckApp.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int main()
1515
pcdSrc->LoadFromPLY(pathPcdSrc);
1616
meshSrc->LoadFromPLY(pathMeshSrc);
1717

18-
segments = diffCheck::segmentation::DFSegmentation::SegmentationPointCloud(*pcdSrc, 0.01, 1, 30, true, 50, 30);
18+
segments = diffCheck::segmentation::DFSegmentation::SmoothSegmentation(*pcdSrc, 0.01, 1, 30, true, 50, 30);
1919
std::cout << "number of segments:" << segments.size()<< std::endl;
2020

2121
diffCheck::visualizer::Visualizer vis;

src/diffCheckBindings.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ PYBIND11_MODULE(diffcheck_bindings, m) {
159159
py::module_ submodule_segmentation = m.def_submodule("dfb_segmentation", "A submodule for the `semantic` segmentation methods.");
160160

161161
py::class_<diffCheck::segmentation::DFSegmentation>(submodule_segmentation, "DFSegmentation")
162-
.def_static("segmentation_point_cloud", &diffCheck::segmentation::DFSegmentation::SegmentationPointCloud,
162+
.def_static("smooth_segmentation", &diffCheck::segmentation::DFSegmentation::SmoothSegmentation,
163163
py::arg("point_cloud"),
164164
py::arg("voxel_size") = 1,
165165
py::arg("normal_threshold_degree") = 20,

0 commit comments

Comments
 (0)