opencv_utils contains functions to handle frame transformation with opencv according with the Pose3D message definition More...
#include <ros/ros.h>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/nonfree/features2d.hpp>
#include <ucl_drone/PointXYZRGBSIFT.h>
Go to the source code of this file.
Functions | |
void | debugRTMatrix (cv::Mat Rt) |
Debug for the transformation (rotation and transltation) matrix. | |
std::vector< cv::Point2f > | Points (const std::vector< cv::KeyPoint > &keypoints) |
This method converts opencv keypoint coordinates to opencv point format. | |
cv::Mat | rollPitchYawToRotationMatrix (const double roll, const double pitch, const double yaw) |
Rotation matrix given RPY angles. | |
cv::Mat | rotationMatrixX (const double angle) |
Rotation matrix about the X axis. | |
cv::Mat | rotationMatrixY (const double angle) |
Rotation matrix about the Y axis. | |
cv::Mat | rotationMatrixZ (const double angle) |
Rotation matrix about the Z axis. | |
cv::Mat | rTMatrix (const cv::Mat rot, const double tx, const double ty, const double tz) |
Transofmation (rotation and translation) matrix given RPY angles and translation lengths. |
opencv_utils contains functions to handle frame transformation with opencv according with the Pose3D message definition
Part of ucl_drone.
Definition in file opencv_utils.h.
void debugRTMatrix | ( | cv::Mat | Rt | ) |
Debug for the transformation (rotation and transltation) matrix.
Definition at line 56 of file opencv_utils.cpp.
std::vector< cv::Point2f > Points | ( | const std::vector< cv::KeyPoint > & | keypoints | ) |
This method converts opencv keypoint coordinates to opencv point format.
Definition at line 66 of file opencv_utils.cpp.
cv::Mat rollPitchYawToRotationMatrix | ( | const double | roll, |
const double | pitch, | ||
const double | yaw | ||
) |
Rotation matrix given RPY angles.
Definition at line 37 of file opencv_utils.cpp.
cv::Mat rotationMatrixX | ( | const double | angle | ) |
Rotation matrix about the X axis.
Definition at line 13 of file opencv_utils.cpp.
cv::Mat rotationMatrixY | ( | const double | angle | ) |
Rotation matrix about the Y axis.
Definition at line 21 of file opencv_utils.cpp.
cv::Mat rotationMatrixZ | ( | const double | angle | ) |
Rotation matrix about the Z axis.
Definition at line 29 of file opencv_utils.cpp.
cv::Mat rTMatrix | ( | const cv::Mat | rot, |
const double | tx, | ||
const double | ty, | ||
const double | tz | ||
) |
Transofmation (rotation and translation) matrix given RPY angles and translation lengths.
Definition at line 47 of file opencv_utils.cpp.