Skip to content

Commit 1adc9de

Browse files
FIX: renaming of cilantro segmentation wrap following review
1 parent d1de3e8 commit 1adc9de

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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::SmoothSegmentation(
9+
std::vector<std::shared_ptr<geometry::DFPointCloud>> DFSegmentation::NormalBasedSegmentation(
1010
geometry::DFPointCloud &pointCloud,
1111
float voxelSize,
1212
float normalThresholdDegree,

src/diffCheck/segmentation/DFSegmentation.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace diffCheck::segmentation
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.
1717
* @return std::vector<std::shared_ptr<geometry::DFPointCloud>> the segmented point clouds
1818
*/
19-
static std::vector<std::shared_ptr<geometry::DFPointCloud>> SmoothSegmentation(
19+
static std::vector<std::shared_ptr<geometry::DFPointCloud>> NormalBasedSegmentation(
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::SmoothSegmentation(*pcdSrc, 0.01, 1, 30, true, 50, 30);
18+
segments = diffCheck::segmentation::DFSegmentation::NormalBasedSegmentation(*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("smooth_segmentation", &diffCheck::segmentation::DFSegmentation::SmoothSegmentation,
162+
.def_static("smooth_segmentation", &diffCheck::segmentation::DFSegmentation::NormalBasedSegmentation,
163163
py::arg("point_cloud"),
164164
py::arg("voxel_size") = 1,
165165
py::arg("normal_threshold_degree") = 20,

0 commit comments

Comments
 (0)