未定义参考 cv::鱼眼::校准
undefined reference to cv::fisheye::calibrate
我正在尝试使用cv::fisheye::calibrate功能校准我的鱼眼镜头相机。但是,我在尝试编译时收到以下错误。
`undefined reference to 'cv::fisheye::calibrate(cv::_InputArray const&, cv::_InputArray const&, cv::Size_<int> const&, cv::_InputOutputArray const&, cv::_InputOutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, cv::TermCriteria)'`
我包含了以下标题
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include "opencv2/opencv.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/features2d/features2d.hpp"
我的CMakeLists包含OpenCV2,我的ROS节点也与OpenCV链接
find_package(OpenCV 2 REQUIRED)
add_executable(cam_features src/main.cpp)
target_link_libraries(cam_features ${catkin_LIBRARIES} ${OpenCV_LIBS} ${Eigen_LIBRARIES})
我不确定我哪里出错了。有人可以指出可能的错误吗?提前谢谢。
我通过清洁构建产品来解决这个问题。另外,我让软件包保留到OpenCV而不是OpenCV2。
相关文章:
- 鱼眼镜头校准给出失真矩阵零
- Levenberg Marquardt 在校准 opencv 中
- OpenCV 错误:相机校准:断言在matrix_wrap.cpp失败
- 校准和归一化来自多个温度传感器的读数的算法
- 如何校准相机焦距,平移和旋转给定四个点
- 使用 OpenCV 3 进行自动校准?
- C++ 不同分辨率的相机的Opencv校准
- 是否可以使用标准OPENCV校准鱼眼相机
- 相机校准数据检索
- ArtoolKit校准结果节省错误
- OPENCV解码灰色代码模式相机校准错误.如何格式化固有和外在结果
- 未定义参考 cv::鱼眼::校准
- 使用OPENCV跟踪对象的多相机校准
- 如何使用OpENCV用广角镜正确校准我的相机
- OPENCV摄像机校准对象_points取向
- 意外的摄像头校准结果与JPEG图像和EXIF方向上的OPENCV结果
- 相机校准OPENCV摄像机作为输入
- 使用OpenCv使用图像序列计算相机校准中的本征估计误差和外在误差
- 相机校准是否取决于图像分辨率
- 使用opencv 3.0测试版进行鱼眼镜头校准