RTAB-Map 0.25.2
Real-Time Appearance-Based Mapping
Loading...
Searching...
No Matches
util3d_filtering.h
1/*
2Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12 * Neither the name of the Universite de Sherbrooke nor the
13 names of its contributors may be used to endorse or promote products
14 derived from this software without specific prior written permission.
15
16THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/
27
28#ifndef UTIL3D_FILTERING_H_
29#define UTIL3D_FILTERING_H_
30
31#include <rtabmap/core/rtabmap_core_export.h>
32#include <rtabmap/core/Transform.h>
33#include <pcl/point_cloud.h>
34#include <pcl/point_types.h>
35#include <pcl/pcl_base.h>
36#include <pcl/ModelCoefficients.h>
37#include <rtabmap/core/LaserScan.h>
38
39namespace rtabmap
40{
41
42namespace util3d
43{
44
83LaserScan RTABMAP_CORE_EXPORT commonFiltering(
84 const LaserScan & scan,
85 int downsamplingStep,
86 float rangeMin = 0.0f,
87 float rangeMax = 0.0f,
88 float voxelSize = 0.0f,
89 int normalK = 0,
90 float normalRadius = 0.0f,
91 float groundNormalsUp = 0.0f);
96RTABMAP_DEPRECATED LaserScan RTABMAP_CORE_EXPORT commonFiltering(
97 const LaserScan & scan,
98 int downsamplingStep,
99 float rangeMin,
100 float rangeMax,
101 float voxelSize,
102 int normalK,
103 float normalRadius,
104 bool forceGroundNormalsUp);
105
122LaserScan RTABMAP_CORE_EXPORT rangeFiltering(
123 const LaserScan & scan,
124 float rangeMin,
125 float rangeMax);
126
147pcl::IndicesPtr RTABMAP_CORE_EXPORT rangeFiltering(
148 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
149 const pcl::IndicesPtr & indices,
150 float rangeMin,
151 float rangeMax);
153pcl::IndicesPtr RTABMAP_CORE_EXPORT rangeFiltering(
154 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
155 const pcl::IndicesPtr & indices,
156 float rangeMin,
157 float rangeMax);
159pcl::IndicesPtr RTABMAP_CORE_EXPORT rangeFiltering(
160 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
161 const pcl::IndicesPtr & indices,
162 float rangeMin,
163 float rangeMax);
165pcl::IndicesPtr RTABMAP_CORE_EXPORT rangeFiltering(
166 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
167 const pcl::IndicesPtr & indices,
168 float rangeMin,
169 float rangeMax);
192void RTABMAP_CORE_EXPORT rangeSplitFiltering(
193 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
194 const pcl::IndicesPtr & indices,
195 float range,
196 pcl::IndicesPtr & closeIndices,
197 pcl::IndicesPtr & farIndices);
199void RTABMAP_CORE_EXPORT rangeSplitFiltering(
200 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
201 const pcl::IndicesPtr & indices,
202 float range,
203 pcl::IndicesPtr & closeIndices,
204 pcl::IndicesPtr & farIndices);
206void RTABMAP_CORE_EXPORT rangeSplitFiltering(
207 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
208 const pcl::IndicesPtr & indices,
209 float range,
210 pcl::IndicesPtr & closeIndices,
211 pcl::IndicesPtr & farIndices);
213void RTABMAP_CORE_EXPORT rangeSplitFiltering(
214 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
215 const pcl::IndicesPtr & indices,
216 float range,
217 pcl::IndicesPtr & closeIndices,
218 pcl::IndicesPtr & farIndices);
243LaserScan RTABMAP_CORE_EXPORT downsample(
244 const LaserScan & cloud,
245 int step);
247pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT downsample(
248 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
249 int step);
251pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT downsample(
252 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
253 int step);
255pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT downsample(
256 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
257 int step);
259pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT downsample(
260 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
261 int step);
263pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT downsample(
264 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
265 int step);
267pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT downsample(
268 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
269 int step);
296pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT voxelize(
297 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
298 const pcl::IndicesPtr & indices,
299 float voxelSize);
301pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT voxelize(
302 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
303 const pcl::IndicesPtr & indices,
304 float voxelSize);
306pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT voxelize(
307 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
308 const pcl::IndicesPtr & indices,
309 float voxelSize);
311pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT voxelize(
312 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
313 const pcl::IndicesPtr & indices,
314 float voxelSize);
316pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT voxelize(
317 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
318 const pcl::IndicesPtr & indices,
319 float voxelSize);
321pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT voxelize(
322 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
323 const pcl::IndicesPtr & indices,
324 float voxelSize);
326pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT voxelize(
327 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
328 float voxelSize);
330pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT voxelize(
331 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
332 float voxelSize);
334pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT voxelize(
335 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
336 float voxelSize);
338pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT voxelize(
339 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
340 float voxelSize);
342pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT voxelize(
343 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
344 float voxelSize);
346pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT voxelize(
347 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
348 float voxelSize);
363inline pcl::PointCloud<pcl::PointXYZ>::Ptr uniformSampling(
364 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
365 float voxelSize)
366{
367 return voxelize(cloud, voxelSize);
368}
381inline pcl::PointCloud<pcl::PointXYZRGB>::Ptr uniformSampling(
382 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
383 float voxelSize)
384{
385 return voxelize(cloud, voxelSize);
386}
399inline pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr uniformSampling(
400 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
401 float voxelSize)
402{
403 return voxelize(cloud, voxelSize);
404}
405
406
423pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT randomSampling(
424 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
425 int samples);
427pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT randomSampling(
428 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
429 int samples);
431pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT randomSampling(
432 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
433 int samples);
435pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT randomSampling(
436 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
437 int samples);
439pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT randomSampling(
440 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
441 int samples);
443pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT randomSampling(
444 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
445 int samples);
472pcl::IndicesPtr RTABMAP_CORE_EXPORT passThrough(
473 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
474 const pcl::IndicesPtr & indices,
475 const std::string & axis,
476 float min,
477 float max,
478 bool negative = false);
480pcl::IndicesPtr RTABMAP_CORE_EXPORT passThrough(
481 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
482 const pcl::IndicesPtr & indices,
483 const std::string & axis,
484 float min,
485 float max,
486 bool negative = false);
488pcl::IndicesPtr RTABMAP_CORE_EXPORT passThrough(
489 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
490 const pcl::IndicesPtr & indices,
491 const std::string & axis,
492 float min,
493 float max,
494 bool negative = false);
496pcl::IndicesPtr RTABMAP_CORE_EXPORT passThrough(
497 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
498 const pcl::IndicesPtr & indices,
499 const std::string & axis,
500 float min,
501 float max,
502 bool negative = false);
504pcl::IndicesPtr RTABMAP_CORE_EXPORT passThrough(
505 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
506 const pcl::IndicesPtr & indices,
507 const std::string & axis,
508 float min,
509 float max,
510 bool negative = false);
512pcl::IndicesPtr RTABMAP_CORE_EXPORT passThrough(
513 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
514 const pcl::IndicesPtr & indices,
515 const std::string & axis,
516 float min,
517 float max,
518 bool negative = false);
520pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT passThrough(
521 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
522 const std::string & axis,
523 float min,
524 float max,
525 bool negative = false);
527pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT passThrough(
528 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
529 const std::string & axis,
530 float min,
531 float max,
532 bool negative = false);
534pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT passThrough(
535 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
536 const std::string & axis,
537 float min,
538 float max,
539 bool negative = false);
541pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT passThrough(
542 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
543 const std::string & axis,
544 float min,
545 float max,
546 bool negative = false);
548pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT passThrough(
549 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
550 const std::string & axis,
551 float min,
552 float max,
553 bool negative = false);
555pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT passThrough(
556 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
557 const std::string & axis,
558 float min,
559 float max,
560 bool negative = false);
586pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(
587 const pcl::PCLPointCloud2::Ptr & cloud,
588 const pcl::IndicesPtr & indices,
589 const Eigen::Vector4f & min,
590 const Eigen::Vector4f & max,
591 const Transform & transform = Transform::getIdentity(),
592 bool negative = false);
594pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(
595 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
596 const pcl::IndicesPtr & indices,
597 const Eigen::Vector4f & min,
598 const Eigen::Vector4f & max,
599 const Transform & transform = Transform::getIdentity(),
600 bool negative = false);
602pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(
603 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
604 const pcl::IndicesPtr & indices,
605 const Eigen::Vector4f & min,
606 const Eigen::Vector4f & max,
607 const Transform & transform = Transform::getIdentity(),
608 bool negative = false);
610pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(
611 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
612 const pcl::IndicesPtr & indices,
613 const Eigen::Vector4f & min,
614 const Eigen::Vector4f & max,
615 const Transform & transform = Transform::getIdentity(),
616 bool negative = false);
618pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(
619 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
620 const pcl::IndicesPtr & indices,
621 const Eigen::Vector4f & min,
622 const Eigen::Vector4f & max,
623 const Transform & transform = Transform::getIdentity(),
624 bool negative = false);
626pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(
627 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
628 const pcl::IndicesPtr & indices,
629 const Eigen::Vector4f & min,
630 const Eigen::Vector4f & max,
631 const Transform & transform = Transform::getIdentity(),
632 bool negative = false);
634pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(
635 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
636 const pcl::IndicesPtr & indices,
637 const Eigen::Vector4f & min,
638 const Eigen::Vector4f & max,
639 const Transform & transform = Transform::getIdentity(),
640 bool negative = false);
642pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT cropBox(
643 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
644 const Eigen::Vector4f & min,
645 const Eigen::Vector4f & max,
646 const Transform & transform = Transform::getIdentity(),
647 bool negative = false);
649pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT cropBox(
650 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
651 const Eigen::Vector4f & min,
652 const Eigen::Vector4f & max,
653 const Transform & transform = Transform::getIdentity(),
654 bool negative = false);
656pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT cropBox(
657 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
658 const Eigen::Vector4f & min,
659 const Eigen::Vector4f & max,
660 const Transform & transform = Transform::getIdentity(),
661 bool negative = false);
663pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT cropBox(
664 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
665 const Eigen::Vector4f & min,
666 const Eigen::Vector4f & max,
667 const Transform & transform = Transform::getIdentity(),
668 bool negative = false);
670pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT cropBox(
671 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
672 const Eigen::Vector4f & min,
673 const Eigen::Vector4f & max,
674 const Transform & transform = Transform::getIdentity(),
675 bool negative = false);
677pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT cropBox(
678 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
679 const Eigen::Vector4f & min,
680 const Eigen::Vector4f & max,
681 const Transform & transform = Transform::getIdentity(),
682 bool negative = false);
717pcl::IndicesPtr RTABMAP_CORE_EXPORT frustumFiltering(
718 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
719 const pcl::IndicesPtr & indices,
720 const Transform & cameraPose,
721 float horizontalFOV,
722 float verticalFOV,
723 float nearClipPlaneDistance,
724 float farClipPlaneDistance,
725 bool negative = false);
727pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT frustumFiltering(
728 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
729 const Transform & cameraPose,
730 float horizontalFOV,
731 float verticalFOV,
732 float nearClipPlaneDistance,
733 float farClipPlaneDistance,
734 bool negative = false);
736pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT frustumFiltering(
737 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
738 const Transform & cameraPose,
739 float horizontalFOV,
740 float verticalFOV,
741 float nearClipPlaneDistance,
742 float farClipPlaneDistance,
743 bool negative = false);
763pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT removeNaNFromPointCloud(
764 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud);
766pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT removeNaNFromPointCloud(
767 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud);
769pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT removeNaNFromPointCloud(
770 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud);
772pcl::PCLPointCloud2::Ptr RTABMAP_CORE_EXPORT removeNaNFromPointCloud(
773 const pcl::PCLPointCloud2::Ptr & cloud);
791pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT removeNaNNormalsFromPointCloud(
792 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud);
794pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT removeNaNNormalsFromPointCloud(
795 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud);
797pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT removeNaNNormalsFromPointCloud(
798 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud);
825pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
826 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
827 float radiusSearch,
828 int minNeighborsInRadius);
830pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
831 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
832 float radiusSearch,
833 int minNeighborsInRadius);
835pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
836 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
837 float radiusSearch,
838 int minNeighborsInRadius);
840pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
841 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
842 float radiusSearch,
843 int minNeighborsInRadius);
845pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
846 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
847 float radiusSearch,
848 int minNeighborsInRadius);
850pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
851 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
852 float radiusSearch,
853 int minNeighborsInRadius);
855pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
856 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
857 const pcl::IndicesPtr & indices,
858 float radiusSearch,
859 int minNeighborsInRadius);
861pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
862 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
863 const pcl::IndicesPtr & indices,
864 float radiusSearch,
865 int minNeighborsInRadius);
867pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
868 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
869 const pcl::IndicesPtr & indices,
870 float radiusSearch,
871 int minNeighborsInRadius);
873pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
874 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
875 const pcl::IndicesPtr & indices,
876 float radiusSearch,
877 int minNeighborsInRadius);
879pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
880 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
881 const pcl::IndicesPtr & indices,
882 float radiusSearch,
883 int minNeighborsInRadius);
885pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(
886 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
887 const pcl::IndicesPtr & indices,
888 float radiusSearch,
889 int minNeighborsInRadius);
930pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
931 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
932 const std::vector<int> & viewpointIndices,
933 const std::map<int, Transform> & viewpoints,
934 float factor=0.01f,
935 float neighborScale=2.0f);
937pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
938 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
939 const std::vector<int> & viewpointIndices,
940 const std::map<int, Transform> & viewpoints,
941 float factor=0.01f,
942 float neighborScale=2.0f);
944pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
945 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
946 const std::vector<int> & viewpointIndices,
947 const std::map<int, Transform> & viewpoints,
948 float factor=0.01f,
949 float neighborScale=2.0f);
951pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
952 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
953 const std::vector<int> & viewpointIndices,
954 const std::map<int, Transform> & viewpoints,
955 float factor=0.01f,
956 float neighborScale=2.0f);
958pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
959 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
960 const std::vector<int> & viewpointIndices,
961 const std::map<int, Transform> & viewpoints,
962 float factor=0.01f,
963 float neighborScale=2.0f);
965pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
966 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
967 const std::vector<int> & viewpointIndices,
968 const std::map<int, Transform> & viewpoints,
969 float factor=0.01f,
970 float neighborScale=2.0f);
971
973pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
974 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
975 const pcl::IndicesPtr & indices,
976 const std::vector<int> & viewpointIndices,
977 const std::map<int, Transform> & viewpoints,
978 float factor=0.01f,
979 float neighborScale=2.0f);
981pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
982 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
983 const pcl::IndicesPtr & indices,
984 const std::vector<int> & viewpointIndices,
985 const std::map<int, Transform> & viewpoints,
986 float factor=0.01f,
987 float neighborScale=2.0f);
989pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
990 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
991 const pcl::IndicesPtr & indices,
992 const std::vector<int> & viewpointIndices,
993 const std::map<int, Transform> & viewpoints,
994 float factor=0.01f,
995 float neighborScale=2.0f);
997pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
998 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
999 const pcl::IndicesPtr & indices,
1000 const std::vector<int> & viewpointIndices,
1001 const std::map<int, Transform> & viewpoints,
1002 float factor=0.01f,
1003 float neighborScale=2.0f);
1005pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
1006 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
1007 const pcl::IndicesPtr & indices,
1008 const std::vector<int> & viewpointIndices,
1009 const std::map<int, Transform> & viewpoints,
1010 float factor=0.01f,
1011 float neighborScale=2.0f);
1013pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(
1014 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
1015 const pcl::IndicesPtr & indices,
1016 const std::vector<int> & viewpointIndices,
1017 const std::map<int, Transform> & viewpoints,
1018 float factor=0.01f,
1019 float neighborScale=2.0f);
1044pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractFiltering(
1045 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1046 const pcl::IndicesPtr & indices,
1047 const pcl::PointCloud<pcl::PointXYZ>::Ptr & subtractCloud,
1048 const pcl::IndicesPtr & subtractIndices,
1049 float radiusSearch,
1050 int minNeighborsInRadius = 1);
1052pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractFiltering(
1053 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1054 const pcl::IndicesPtr & indices,
1055 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & subtractCloud,
1056 const pcl::IndicesPtr & subtractIndices,
1057 float radiusSearch,
1058 int minNeighborsInRadius = 1);
1060pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractFiltering(
1061 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
1062 const pcl::IndicesPtr & indices,
1063 const pcl::PointCloud<pcl::PointNormal>::Ptr & subtractCloud,
1064 const pcl::IndicesPtr & subtractIndices,
1065 float radiusSearch,
1066 float maxAngle = M_PI/4.0f,
1067 int minNeighborsInRadius = 1);
1069pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractFiltering(
1070 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
1071 const pcl::IndicesPtr & indices,
1072 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & subtractCloud,
1073 const pcl::IndicesPtr & subtractIndices,
1074 float radiusSearch,
1075 float maxAngle = M_PI/4.0f,
1076 int minNeighborsInRadius = 1);
1078pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractFiltering(
1079 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
1080 const pcl::IndicesPtr & indices,
1081 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & subtractCloud,
1082 const pcl::IndicesPtr & subtractIndices,
1083 float radiusSearch,
1084 float maxAngle = M_PI/4.0f,
1085 int minNeighborsInRadius = 1);
1087pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT subtractFiltering(
1088 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1089 const pcl::PointCloud<pcl::PointXYZ>::Ptr & subtractCloud,
1090 float radiusSearch,
1091 int minNeighborsInRadius = 1);
1093pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT subtractFiltering(
1094 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1095 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & subtractCloud,
1096 float radiusSearch,
1097 int minNeighborsInRadius = 1);
1099pcl::PointCloud<pcl::PointNormal>::Ptr RTABMAP_CORE_EXPORT subtractFiltering(
1100 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
1101 const pcl::PointCloud<pcl::PointNormal>::Ptr & subtractCloud,
1102 float radiusSearch,
1103 float maxAngle = M_PI/4.0f,
1104 int minNeighborsInRadius = 1);
1106pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT subtractFiltering(
1107 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
1108 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & subtractCloud,
1109 float radiusSearch,
1110 float maxAngle = M_PI/4.0f,
1111 int minNeighborsInRadius = 1);
1113pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT subtractFiltering(
1114 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
1115 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & subtractCloud,
1116 float radiusSearch,
1117 float maxAngle = M_PI/4.0f,
1118 int minNeighborsInRadius = 1);
1142pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractAdaptiveFiltering(
1143 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1144 const pcl::IndicesPtr & indices,
1145 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & subtractCloud,
1146 const pcl::IndicesPtr & subtractIndices,
1147 float radiusSearchRatio = 0.01,
1148 int minNeighborsInRadius = 1,
1149 const Eigen::Vector3f & viewpoint = Eigen::Vector3f(0,0,0));
1150
1178pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractAdaptiveFiltering(
1179 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
1180 const pcl::IndicesPtr & indices,
1181 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & subtractCloud,
1182 const pcl::IndicesPtr & subtractIndices,
1183 float radiusSearchRatio = 0.01,
1184 float maxAngle = M_PI/4.0f,
1185 int minNeighborsInRadius = 1,
1186 const Eigen::Vector3f & viewpoint = Eigen::Vector3f(0,0,0));
1187
1188
1219pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1220 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1221 float angleMax,
1222 const Eigen::Vector4f & normal,
1223 int normalKSearch,
1224 const Eigen::Vector4f & viewpoint,
1225 float groundNormalsUp = 0.0f);
1227pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1228 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1229 float angleMax,
1230 const Eigen::Vector4f & normal,
1231 int normalKSearch,
1232 const Eigen::Vector4f & viewpoint,
1233 float groundNormalsUp = 0.0f);
1235pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1236 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1237 const pcl::IndicesPtr & indices,
1238 float angleMax,
1239 const Eigen::Vector4f & normal,
1240 int normalKSearch,
1241 const Eigen::Vector4f & viewpoint,
1242 float groundNormalsUp = 0.0f);
1244pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1245 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1246 const pcl::IndicesPtr & indices,
1247 float angleMax,
1248 const Eigen::Vector4f & normal,
1249 int normalKSearch,
1250 const Eigen::Vector4f & viewpoint,
1251 float groundNormalsUp = 0.0f);
1253pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1254 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
1255 const pcl::IndicesPtr & indices,
1256 float angleMax,
1257 const Eigen::Vector4f & normal,
1258 int normalKSearch,
1259 const Eigen::Vector4f & viewpoint,
1260 float groundNormalsUp = 0.0f);
1262pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1263 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
1264 const pcl::IndicesPtr & indices,
1265 float angleMax,
1266 const Eigen::Vector4f & normal,
1267 int normalKSearch,
1268 const Eigen::Vector4f & viewpoint,
1269 float groundNormalsUp = 0.0f);
1271pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1272 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
1273 const pcl::IndicesPtr & indices,
1274 float angleMax,
1275 const Eigen::Vector4f & normal,
1276 int normalKSearch,
1277 const Eigen::Vector4f & viewpoint,
1278 float groundNormalsUp = 0.0f);
1280pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(
1281 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
1282 const pcl::IndicesPtr & indices,
1283 float angleMax,
1284 const Eigen::Vector4f & normal,
1285 int normalKSearch,
1286 const Eigen::Vector4f & viewpoint,
1287 float groundNormalsUp = 0.0f);
1315std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1316 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1317 float clusterTolerance,
1318 int minClusterSize,
1319 int maxClusterSize = std::numeric_limits<int>::max(),
1320 int * biggestClusterIndex = 0);
1322std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1323 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1324 float clusterTolerance,
1325 int minClusterSize,
1326 int maxClusterSize = std::numeric_limits<int>::max(),
1327 int * biggestClusterIndex = 0);
1329std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1330 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1331 const pcl::IndicesPtr & indices,
1332 float clusterTolerance,
1333 int minClusterSize,
1334 int maxClusterSize = std::numeric_limits<int>::max(),
1335 int * biggestClusterIndex = 0);
1337std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1338 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
1339 const pcl::IndicesPtr & indices,
1340 float clusterTolerance,
1341 int minClusterSize,
1342 int maxClusterSize = std::numeric_limits<int>::max(),
1343 int * biggestClusterIndex = 0);
1345std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1346 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1347 const pcl::IndicesPtr & indices,
1348 float clusterTolerance,
1349 int minClusterSize,
1350 int maxClusterSize = std::numeric_limits<int>::max(),
1351 int * biggestClusterIndex = 0);
1353std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1354 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
1355 const pcl::IndicesPtr & indices,
1356 float clusterTolerance,
1357 int minClusterSize,
1358 int maxClusterSize = std::numeric_limits<int>::max(),
1359 int * biggestClusterIndex = 0);
1361std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1362 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
1363 const pcl::IndicesPtr & indices,
1364 float clusterTolerance,
1365 int minClusterSize,
1366 int maxClusterSize = std::numeric_limits<int>::max(),
1367 int * biggestClusterIndex = 0);
1369std::vector<pcl::IndicesPtr> RTABMAP_CORE_EXPORT extractClusters(
1370 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
1371 const pcl::IndicesPtr & indices,
1372 float clusterTolerance,
1373 int minClusterSize,
1374 int maxClusterSize = std::numeric_limits<int>::max(),
1375 int * biggestClusterIndex = 0);
1402pcl::IndicesPtr RTABMAP_CORE_EXPORT extractIndices(
1403 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1404 const pcl::IndicesPtr & indices,
1405 bool negative);
1407pcl::IndicesPtr RTABMAP_CORE_EXPORT extractIndices(
1408 const pcl::PointCloud<pcl::PointNormal>::Ptr & cloud,
1409 const pcl::IndicesPtr & indices,
1410 bool negative);
1412pcl::IndicesPtr RTABMAP_CORE_EXPORT extractIndices(
1413 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1414 const pcl::IndicesPtr & indices,
1415 bool negative);
1417pcl::IndicesPtr RTABMAP_CORE_EXPORT extractIndices(
1418 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
1419 const pcl::IndicesPtr & indices,
1420 bool negative);
1422pcl::IndicesPtr RTABMAP_CORE_EXPORT extractIndices(
1423 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
1424 const pcl::IndicesPtr & indices,
1425 bool negative);
1427pcl::IndicesPtr RTABMAP_CORE_EXPORT extractIndices(
1428 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
1429 const pcl::IndicesPtr & indices,
1430 bool negative);
1432pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_CORE_EXPORT extractIndices(
1433 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1434 const pcl::IndicesPtr & indices,
1435 bool negative,
1436 bool keepOrganized);
1438pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_CORE_EXPORT extractIndices(
1439 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
1440 const pcl::IndicesPtr & indices,
1441 bool negative,
1442 bool keepOrganized);
1444pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr RTABMAP_CORE_EXPORT extractIndices(
1445 const pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr & cloud,
1446 const pcl::IndicesPtr & indices,
1447 bool negative,
1448 bool keepOrganized);
1450pcl::PointCloud<pcl::PointXYZI>::Ptr RTABMAP_CORE_EXPORT extractIndices(
1451 const pcl::PointCloud<pcl::PointXYZI>::Ptr & cloud,
1452 const pcl::IndicesPtr & indices,
1453 bool negative,
1454 bool keepOrganized);
1456pcl::PointCloud<pcl::PointXYZINormal>::Ptr RTABMAP_CORE_EXPORT extractIndices(
1457 const pcl::PointCloud<pcl::PointXYZINormal>::Ptr & cloud,
1458 const pcl::IndicesPtr & indices,
1459 bool negative,
1460 bool keepOrganized);
1483pcl::IndicesPtr RTABMAP_CORE_EXPORT extractPlane(
1484 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1485 const pcl::IndicesPtr & indices,
1486 float distanceThreshold,
1487 int maxIterations = 100,
1488 pcl::ModelCoefficients * coefficientsOut = 0);
1489pcl::IndicesPtr RTABMAP_CORE_EXPORT extractPlane(
1490 const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,
1491 float distanceThreshold,
1492 int maxIterations = 100,
1493 pcl::ModelCoefficients * coefficientsOut = 0);
1494
1495} // namespace util3d
1496} // namespace rtabmap
1497
1498#endif /* UTIL3D_FILTERING_H_ */
Represents 2D or 3D laser scan data with support for multiple point data formats.
Definition LaserScan.h:46
Represents a 3D rigid body transformation (rotation + translation).
Definition Transform.h:53
static Transform getIdentity()
Returns identity transform.
pcl::IndicesPtr RTABMAP_CORE_EXPORT cropBox(const pcl::PCLPointCloud2::Ptr &cloud, const pcl::IndicesPtr &indices, const Eigen::Vector4f &min, const Eigen::Vector4f &max, const Transform &transform=Transform::getIdentity(), bool negative=false)
Performs crop box filtering on a point cloud of type pcl::PCLPointCloud2 and returns filtered indices...
std::vector< pcl::IndicesPtr > RTABMAP_CORE_EXPORT extractClusters(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, float clusterTolerance, int minClusterSize, int maxClusterSize=std::numeric_limits< int >::max(), int *biggestClusterIndex=0)
Extract clusters from point cloud of type pcl::PointXYZ.
pcl::IndicesPtr RTABMAP_CORE_EXPORT extractIndices(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, bool negative)
Extract indices from point cloud of type pcl::PointXYZ.
pcl::IndicesPtr RTABMAP_CORE_EXPORT frustumFiltering(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, const Transform &cameraPose, float horizontalFOV, float verticalFOV, float nearClipPlaneDistance, float farClipPlaneDistance, bool negative=false)
Performs frustum filtering on a point cloud of type pcl::PointXYZ and returns filtered indices.
pcl::IndicesPtr RTABMAP_CORE_EXPORT passThrough(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, const std::string &axis, float min, float max, bool negative=false)
Performs pass-through filtering on a point cloud of type pcl::PointXYZ and returns filtered indices.
LaserScan RTABMAP_CORE_EXPORT downsample(const LaserScan &cloud, int step)
Downsamples a LaserScan.
void RTABMAP_CORE_EXPORT rangeSplitFiltering(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, float range, pcl::IndicesPtr &closeIndices, pcl::IndicesPtr &farIndices)
Splits a point cloud of type pcl::PointXYZ.
pcl::IndicesPtr RTABMAP_CORE_EXPORT normalFiltering(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, float angleMax, const Eigen::Vector4f &normal, int normalKSearch, const Eigen::Vector4f &viewpoint, float groundNormalsUp=0.0f)
Point normal filtering for point cloud of type pcl::PointXYZ.
pcl::IndicesPtr RTABMAP_CORE_EXPORT proportionalRadiusFiltering(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const std::vector< int > &viewpointIndices, const std::map< int, Transform > &viewpoints, float factor=0.01f, float neighborScale=2.0f)
Proportional radius filtering for point cloud of type pcl::PointXYZ.
pcl::IndicesPtr RTABMAP_CORE_EXPORT radiusFiltering(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, float radiusSearch, int minNeighborsInRadius)
Radius filtering for point cloud of type pcl::PointXYZ.
pcl::PointCloud< pcl::PointXYZ >::Ptr RTABMAP_CORE_EXPORT randomSampling(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, int samples)
Performs random sampling on a point cloud of type pcl::PointXYZ.
pcl::PointCloud< pcl::PointXYZ >::Ptr RTABMAP_CORE_EXPORT removeNaNFromPointCloud(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud)
Remove NaN points from a point cloud of type pcl::PointXYZ.
pcl::PointCloud< pcl::PointNormal >::Ptr RTABMAP_CORE_EXPORT removeNaNNormalsFromPointCloud(const pcl::PointCloud< pcl::PointNormal >::Ptr &cloud)
Removes points with NaN normal values from a point cloud of type pcl::PointNormal.
pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractFiltering(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, const pcl::PointCloud< pcl::PointXYZ >::Ptr &subtractCloud, const pcl::IndicesPtr &subtractIndices, float radiusSearch, int minNeighborsInRadius=1)
Subtract filtering for point cloud of type pcl::PointXYZ, returning filtered indices.
pcl::PointCloud< pcl::PointXYZ >::Ptr RTABMAP_CORE_EXPORT voxelize(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, float voxelSize)
Performs voxel grid downsampling on a point cloud of type pcl::PointXYZ on provided indices.
pcl::IndicesPtr RTABMAP_CORE_EXPORT subtractAdaptiveFiltering(const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &cloud, const pcl::IndicesPtr &indices, const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &subtractCloud, const pcl::IndicesPtr &subtractIndices, float radiusSearchRatio=0.01, int minNeighborsInRadius=1, const Eigen::Vector3f &viewpoint=Eigen::Vector3f(0, 0, 0))
Performs adaptive radius-based subtraction filtering on a point cloud.
LaserScan RTABMAP_CORE_EXPORT commonFiltering(const LaserScan &scan, int downsamplingStep, float rangeMin=0.0f, float rangeMax=0.0f, float voxelSize=0.0f, int normalK=0, float normalRadius=0.0f, float groundNormalsUp=0.0f)
Applies a common set of filters to a LaserScan, including downsampling, range limits,...
pcl::PointCloud< pcl::PointXYZ >::Ptr uniformSampling(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, float voxelSize)
DEPRECATED: Use voxelize() instead.
pcl::IndicesPtr RTABMAP_CORE_EXPORT extractPlane(const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, float distanceThreshold, int maxIterations=100, pcl::ModelCoefficients *coefficientsOut=0)
Extracts the indices of the inliers that belong to a plane using RANSAC.
LaserScan RTABMAP_CORE_EXPORT rangeFiltering(const LaserScan &scan, float rangeMin, float rangeMax)
Filters a LaserScan data on a minimum and maximum Euclidean range.