initial commit
This commit is contained in:
@ -11,6 +11,20 @@
|
||||
namespace msckf_vio {
|
||||
namespace utils {
|
||||
|
||||
static void download(const cv::cuda::GpuMat& d_mat, std::vector<cv::Point2f>& vec)
|
||||
{
|
||||
vec.resize(d_mat.cols);
|
||||
cv::Mat mat(1, d_mat.cols, CV_32FC2, (void*)&vec[0]);
|
||||
d_mat.download(mat);
|
||||
}
|
||||
|
||||
static void download(const cv::cuda::GpuMat& d_mat, std::vector<uchar>& vec)
|
||||
{
|
||||
vec.resize(d_mat.cols);
|
||||
cv::Mat mat(1, d_mat.cols, CV_8UC1, (void*)&vec[0]);
|
||||
d_mat.download(mat);
|
||||
}
|
||||
|
||||
Eigen::Isometry3d getTransformEigen(const ros::NodeHandle &nh,
|
||||
const std::string &field) {
|
||||
Eigen::Isometry3d T;
|
||||
|
Reference in New Issue
Block a user