|
NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
Go to the documentation of this file.
23 #include <opencv2/core.hpp>
24 #include <opencv2/features2d.hpp>
25 #include <opencv2/imgproc.hpp>
27 #include <pcl/kdtree/impl/kdtree_flann.hpp>
28 #include <pcl/search/impl/search.hpp>
29 #include <pcl/search/impl/kdtree.hpp>
31 #ifndef DEPTH_ODOMETRY_DEPTH_IMAGE_FEATURES_AND_POINTS_H_
32 #define DEPTH_ODOMETRY_DEPTH_IMAGE_FEATURES_AND_POINTS_H_
39 const cv::Ptr<cv::CLAHE> clahe,
const bool normals_required =
false)
43 clahe->apply(depth_image_.
image(), clahe_image);
49 if (normals_required) {
50 kdtree_.reset(
new pcl::search::KdTree<pcl::PointXYZI>());
51 filtered_point_cloud_ =
53 kdtree_->setInputCloud(filtered_point_cloud_);
67 std::unique_ptr<vision_common::FeatureImage> feature_image_;
68 pcl::search::KdTree<pcl::PointXYZI>::Ptr kdtree_;
69 pcl::PointCloud<pcl::PointXYZI>::Ptr filtered_point_cloud_;
72 #endif // DEPTH_ODOMETRY_DEPTH_IMAGE_FEATURES_AND_POINTS_H_
const localization_measurements::DepthImage & depth_image() const
Definition: depth_image_features_and_points.h:63
boost::optional< Eigen::Vector3d > Normal(const Eigen::Vector3d &point_3d, const double search_radius) const
Definition: depth_image_features_and_points.h:57
Definition: depth_image_features_and_points.h:35
const cv::Mat & image() const
Definition: depth_image.h:40
Definition: depth_image_features_and_points.h:34
Definition: feature_image.h:27
const pcl::PointCloud< pcl::PointXYZI >::Ptr unfiltered_point_cloud() const
Definition: depth_image.h:41
Definition: depth_image.h:32
DepthImageFeaturesAndPoints(const localization_measurements::DepthImage &depth_image, cv::Feature2D &feature_detector, const cv::Ptr< cv::CLAHE > clahe, const bool normals_required=false)
Definition: depth_image_features_and_points.h:38
Eigen::Vector3d Vector3d(const PointType &point)
Definition: utilities.h:328
boost::optional< Eigen::Vector3d > GetNormal(const Eigen::Vector3d &point, const pcl::PointCloud< PointType > &cloud, const pcl::search::KdTree< PointType > &kdtree, const double search_radius=0.03)
Definition: utilities.h:338
const vision_common::FeatureImage & feature_image() const
Definition: depth_image_features_and_points.h:61