stereo.hpp
Go to the documentation of this file.
00001 
00005 #ifndef _THERMALVIS_STEREO_H_
00006 #define _THERMALVIS_STEREO_H_
00007 
00008 #include "general_resources.hpp"
00009 #include "opencv_resources.hpp"
00010 
00011 #include "improc.hpp"
00012 #include "tools.hpp"
00013 #include "features.hpp"
00014 
00015 void getContours(const cv::Mat& src, vector<vector<vector<cv::Point> > >& contours);
00016 void drawContours(const cv::Mat& src, cv::Mat& dst);
00017 
00018 double fitFixedLine(vector<unsigned short>& x, vector<unsigned short>& y, double grad = 1.0);
00019 
00020 void depthFromContours(vector<vector<vector<cv::Point> > >& c1, vector<vector<vector<cv::Point> > >& c2, cv::Mat& disp);
00021 
00022 //bool findRadiometricMapping(const cv::Mat& im1, const cv::Mat& im2, double& grad, double& shift, const cv::Mat& pim1, const cv::Mat& pim2);
00023 
00024 void drawEpipolarLines(cv::Mat& im1, cv::Mat& im2, cv::Mat& F);
00025 
00026 double findBestAlpha(const cv::Mat& K1, const cv::Mat& K2, const cv::Mat& coeff1, const cv::Mat& coeff2, const cv::Size& camSize, const cv::Mat& R0, const cv::Mat& R1);
00027 
00028 // configData.cameraData1.newCamMat = getOptimalNewCameraMatrix(configData.cameraData1.K, configData.cameraData1.distCoeffs, configData.cameraData1.cameraSize, alpha, configData.cameraData1.cameraSize, &roi1, centerPrincipalPoint);
00029 
00030 bool relevelImages(const cv::Mat& im1, const cv::Mat& im2, const cv::Mat& old_depth, const cv::Mat& R1, const cv::Mat& R2, const cv::Mat& t, const cv::Mat& Q1, const cv::Mat& Q2, cv::Mat& pim1, cv::Mat& pim2, const cv::Mat& map11, const cv::Mat& map12, const cv::Mat& map21, const cv::Mat& map22);
00031 
00032 void findRadiometricMapping2(const cv::Mat& im1, const cv::Mat& im2, const cv::Mat& depth, const cv::Mat& R1, const cv::Mat& R2, const cv::Mat& t, const cv::Mat& Q1, const cv::Mat& Q2, double& grad, double& shift);
00033 
00034 void plotPoints(cv::Mat& dispMat, vector<unsigned short>& i1, vector<unsigned short>& i2, unsigned short median_1 = 0, unsigned short median_2 = 0, double grad = 1.0, double shift = 0.0);
00035 
00036 #endif


thermalvis
Author(s): Stephen Vidas
autogenerated on Sun Jan 5 2014 11:38:45