PointCloudLibrary / PointCloudLibrary/pcl

[segmentation] "Retrieve differences OR similarities between two point clouds with pcl::SegmentDifferences::segment"

Open
#4,990 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: request status: triage
Dominant language
C++
Stars
11.1k
Forks
4.7k
Avg merge
4d 10h
Merged PRs (30d)
6

Description

Hello, very easy feature request here, but I'm a person very new to C++ and PCL as well.

Currently, pcl::SegmentDifferences::segment is able to return the portion of the "src" point cloud that differs from the "target" point cloud. I would like there to be an option with this to return the portion of the "src" point cloud that is similar to the "target" point cloud.

I believe that besides adding a boolean for the user to set that determines whether we're doing difference or similar, the only line that would need to change is this one:
image

The new line would be something like
if ((nn_distances[0] > threshold && !getSimiliarInsteadFlag) || (nn_distances[0] < threshold && getSimiliarInsteadFlag))

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at pcl::SegmentDifferences::segment and inspect how nn_distances[0] is compared with threshold for the existing difference result. Add the requested choice between differences and similarities, then verify that the selected portion of the src point cloud is returned for both modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.