Skip to content

Commit

Permalink
[fetch_depth_layer][OpenCV-4] operator= compile error (ZebraDevs#108)
Browse files Browse the repository at this point in the history
This fixes no match for ‘operator=’ error with OpenCV4 and how the cv::Ptr was being set.

Fixed by setting the normals_estimator_ pointer similarly to how the plane_estimator_ pointer is being set.

This closes ZebraDevs#82
  • Loading branch information
moriarty authored Mar 14, 2019
1 parent 1fc1650 commit 5ce8ee3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fetch_depth_layer/src/depth_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ void FetchDepthLayer::depthImageCallback(
// Get normals
if (normals_estimator_.empty())
{
normals_estimator_ = new RgbdNormals(cv_ptr->image.rows,
cv_ptr->image.cols,
cv_ptr->image.depth(),
K_);
normals_estimator_.reset(new RgbdNormals(cv_ptr->image.rows,
cv_ptr->image.cols,
cv_ptr->image.depth(),
K_));
}
cv::Mat normals;
(*normals_estimator_)(points3d, normals);
Expand Down

0 comments on commit 5ce8ee3

Please sign in to comment.