Skip to content

Commit

Permalink
successfully mapped mask into rgbd image using setRGBImage(mask)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyan367 committed Dec 24, 2023
1 parent eb18b48 commit 37b37de
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 296 deletions.
9 changes: 4 additions & 5 deletions ed_sensor_integration/include/ed/kinect/place_area_finder.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ class PlaceAreaFinder
geo::Vec2d canvasToWorld(cv::Point2d point);

//--------------------------------------------------------------------------------------------------------------------------------------
void drawfilledContour(pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud, cv::Scalar color);
cv::Point2d canvasToWorld2(double u, double v);
void drawContour(pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud, cv::Scalar color);
//void mapCanvasToWorldAndVisualize(pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud, cv::Scalar color);
// void mapCanvasToWorldAndPlaceInAnnotatedImage(const rgbd::Image &image, pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud, cv::Scalar color);

void drawContourAndTransformToWorld(pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud, cv::Scalar color,float height);
rgbd::ImageConstPtr createModifiedImage(const rgbd::ImageConstPtr& originalImagePtr, const cv::Mat& newRGBValues);
//--------------------------------------------------------------------------------------------------------------------------------------

/**
Expand Down Expand Up @@ -134,7 +133,7 @@ class PlaceAreaFinder
* @param indeces
* @param color
*/
void annotateImage(const rgbd::Image& image, const pcl::Indices index, cv::Scalar color,const cv::Mat &mask);
void annotateImage(const rgbd::Image& image, const pcl::Indices index, cv::Scalar color);

};

Expand Down
Loading

0 comments on commit 37b37de

Please sign in to comment.