Skip to content

Inherit StatisticalOutlierRemoval<PCLPointCloud2> from FilterIndices - #1663

Merged
taketwo merged 3 commits into
PointCloudLibrary:masterfrom
stefanbuettner:OrganizedStatisticalOutlierRemoval
Sep 2, 2017
Merged

Inherit StatisticalOutlierRemoval<PCLPointCloud2> from FilterIndices#1663
taketwo merged 3 commits into
PointCloudLibrary:masterfrom
stefanbuettner:OrganizedStatisticalOutlierRemoval

Conversation

@stefanbuettner

Copy link
Copy Markdown
Contributor

Hey all,

recently I was very happy to see that there are specializations of many algorithms for PCLPointCloud2. However, the StatisticalOutlierRemoval<PCLPointCloud2> class inherits from Filter<PCLPointCloud2> as opposed to the StatisticalOutlierRemoval<PointT> which inherits from FilterIndices<PointT>. In contrast to the Filter class, FilterIndices supports keeping the cloud organized apart from only returning an index list of the good points, of course.
This PR suggests a change from the Filter<PCLPointCloud2> base class to the FilterIndices<PCLPointCloud2> base class allowing to keep the point cloud organized and to filter only the indices.

What do you think?
I still need to squash.

Best,
Stefan

@stefanbuettner
stefanbuettner force-pushed the OrganizedStatisticalOutlierRemoval branch from a6c59cf to a4e0157 Compare July 28, 2016 15:38
@taketwo

taketwo commented Jul 29, 2016

Copy link
Copy Markdown
Member

FilterIndices is a subclass of Filter, so we should not be breaking anyone's code. LGTM.

@SergioRAgostinho SergioRAgostinho added this to the pcl-1.9.0 milestone Aug 16, 2016
@taketwo
taketwo merged commit 512f3a3 into PointCloudLibrary:master Sep 2, 2017
UnaNancyOwen pushed a commit to UnaNancyOwen/pcl that referenced this pull request Nov 24, 2017
…ry#1663)

Inherit from FilterIndices and implement applyFilter, move duplicate code
@taketwo taketwo changed the title Organized Statistical Outlier Removal PCLPointCloud2 Inherit StatisticalOutlierRemoval<PCLPointCloud2> from FilterIndices Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants