Blame view
include/utils.h
743 Bytes
b0bb08d1c init |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#ifndef UTILS_H #define UTILS_H #include <iostream> #include <fstream> #include <opencv2/opencv.hpp> #ifndef PI #define PI 3.141592653589793238462643383279502884L #endif namespace util{ void saveFileToMatlab(std::string fileName, cv::Mat a, std::string varName); double rad2deg(double angRad); double deg2rad(double angDeg); void makeNonHomogenious(cv::Mat & m); void copyMatElementsToVector(const cv::Mat & mat, const cv::Mat & idx, std::vector<double> & vec); void copyVectorToMatElements(const std::vector<double> & vec, const cv::Mat & idx, cv::Mat & mat); enum{ CONCAT_HORIZONTAL, CONCAT_VERTICAL, }; cv::Mat concatenateMat(const std::vector<cv::Mat> & matArray, int method = CONCAT_VERTICAL); } #endif // UTILS_H |