Skip to content

error: ‘minAreaRect’ is not a member of ‘cv’ #8

@GianMeng

Description

@GianMeng

Hello, I follow the README.txt to install the package. But when I catkin_make in my workspace, I got a problem.

/home/neo/multi_kinects/src/multi_kinect/multi_kinect_euclidean_cluster/src/euclidean_cluster.cpp: In member function ‘jsk_recognition_msgs::BoundingBox EuclideanCluster::MinAreaRect(pcl::PointCloud<pcl::PointXYZ>::Ptr, int)’: /home/neo/multi_kinects/src/multi_kinect/multi_kinect_euclidean_cluster/src/euclidean_cluster.cpp:277:27: error: ‘minAreaRect’ is not a member of ‘cv’ cv::RotatedRect rrect = cv::minAreaRect(points_mat);

#------------------------------------------------------------------------------------------------------------------------------------

Maybe it's a basic mistake without include some .h files in the euclidean_cluster.hpp.
So I add two .h files in the euclidean_cluster.hpp. And the catkin_make proccess is successful.

#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

So I think maybe the source code need to add these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions