33 #include <opencv2/core/core.hpp> 45 float RTABMAP_EXP ssd(
const cv::Mat & windowLeft,
const cv::Mat & windowRight);
47 float RTABMAP_EXP sad(
const cv::Mat & windowLeft,
const cv::Mat & windowRight);
50 const cv::Mat & leftImage,
51 const cv::Mat & rightImage,
52 const std::vector<cv::Point2f> & leftCorners,
53 std::vector<unsigned char> & status,
54 cv::Size winSize = cv::Size(6,3),
57 float minDisparity = 0.0
f,
58 float maxDisparity = 64.0
f,
59 bool ssdApproach =
true);
63 cv::InputArray _prevPts, cv::InputOutputArray _nextPts,
64 cv::OutputArray _status, cv::OutputArray _err,
65 cv::Size winSize = cv::Size(15,3),
int maxLevel = 3,
66 cv::TermCriteria criteria = cv::TermCriteria(cv::TermCriteria::COUNT+cv::TermCriteria::EPS, 30, 0.01),
67 int flags = 0,
double minEigThreshold = 1
e-4 );
71 const cv::Mat & leftImage,
72 const cv::Mat & rightImage,
76 float fx,
float baseline,
80 const cv::Mat & leftImage,
81 const cv::Mat & rightImage,
82 const std::vector<cv::Point2f> & leftCorners,
87 int flowIterations = 20,
88 double flowEps = 0.02);
91 const cv::Size & disparitySize,
92 const std::vector<cv::Point2f> & leftCorners,
93 const std::vector<cv::Point2f> & rightCorners,
94 const std::vector<unsigned char> &
mask);
97 const cv::Mat & leftImage,
98 const std::vector<cv::Point2f> & leftCorners,
99 const std::vector<cv::Point2f> & rightCorners,
100 const std::vector<unsigned char> & mask,
101 float fx,
float baseline);
107 const cv::Mat & depthImage,
110 float depthErrorRatio = 0.02
f,
111 bool estWithNeighborsIfNull =
false);
123 const cv::Mat & depth,
124 const cv::Mat & depthK,
125 const cv::Size & colorSize,
126 const cv::Mat & colorK,
130 const cv::Mat & depth,
131 int maximumHoleSize = 1,
132 float errorRatio = 0.02
f);
135 cv::Mat & depthRegistered,
138 bool fillDoubleHoles =
false);
141 const cv::Mat & depth,
142 float sigmaS = 15.0
f,
143 float sigmaR = 0.05
f,
144 bool earlyDivision =
false);
148 const cv::Mat & mask,
149 float clipLowHistPercent=0,
150 float clipHighHistPercent=0);
153 const std::vector<cv::Mat> & images);
cv::Mat RTABMAP_EXP disparityFromStereoImages(const cv::Mat &leftImage, const cv::Mat &rightImage, const ParametersMap ¶meters=ParametersMap())
GLM_FUNC_DECL genIType mask(genIType const &count)
cv::Mat RTABMAP_EXP depthFromStereoCorrespondences(const cv::Mat &leftImage, const std::vector< cv::Point2f > &leftCorners, const std::vector< cv::Point2f > &rightCorners, const std::vector< unsigned char > &mask, float fx, float baseline)
cv::Mat RTABMAP_EXP cvtDepthToFloat(const cv::Mat &depth16U)
cv::Mat RTABMAP_EXP depthFromDisparity(const cv::Mat &disparity, float fx, float baseline, int type=CV_32FC1)
GLM_FUNC_DECL genType e()
std::map< std::string, std::string > ParametersMap
cv::Mat RTABMAP_EXP fastBilateralFiltering(const cv::Mat &depth, float sigmaS=15.0f, float sigmaR=0.05f, bool earlyDivision=false)
cv::Mat RTABMAP_EXP registerDepth(const cv::Mat &depth, const cv::Mat &depthK, const cv::Size &colorSize, const cv::Mat &colorK, const rtabmap::Transform &transform)
cv::Mat RTABMAP_EXP depthFromStereoImages(const cv::Mat &leftImage, const cv::Mat &rightImage, const std::vector< cv::Point2f > &leftCorners, float fx, float baseline, int flowWinSize=9, int flowMaxLevel=4, int flowIterations=20, double flowEps=0.02)
cv::Mat RTABMAP_EXP interpolate(const cv::Mat &image, int factor, float depthErrorRatio=0.02f)
float RTABMAP_EXP ssd(const cv::Mat &windowLeft, const cv::Mat &windowRight)
cv::Mat RTABMAP_EXP decimate(const cv::Mat &image, int d)
cv::Mat RTABMAP_EXP brightnessAndContrastAuto(const cv::Mat &src, const cv::Mat &mask, float clipLowHistPercent=0, float clipHighHistPercent=0)
Automatic brightness and contrast optimization with optional histogram clipping.
cv::Mat RTABMAP_EXP disparityFromStereoCorrespondences(const cv::Size &disparitySize, const std::vector< cv::Point2f > &leftCorners, const std::vector< cv::Point2f > &rightCorners, const std::vector< unsigned char > &mask)
cv::Rect RTABMAP_EXP computeRoi(const cv::Mat &image, const std::string &roiRatios)
void RTABMAP_EXP fillRegisteredDepthHoles(cv::Mat &depthRegistered, bool vertical, bool horizontal, bool fillDoubleHoles=false)
cv::Mat RTABMAP_EXP exposureFusion(const std::vector< cv::Mat > &images)
cv::Mat RTABMAP_EXP fillDepthHoles(const cv::Mat &depth, int maximumHoleSize=1, float errorRatio=0.02f)
float RTABMAP_EXP sad(const cv::Mat &windowLeft, const cv::Mat &windowRight)
cv::Mat RTABMAP_EXP cvtDepthFromFloat(const cv::Mat &depth32F)
float RTABMAP_EXP getDepth(const cv::Mat &depthImage, float x, float y, bool smoothing, float depthErrorRatio=0.02f, bool estWithNeighborsIfNull=false)
std::vector< cv::Point2f > RTABMAP_EXP calcStereoCorrespondences(const cv::Mat &leftImage, const cv::Mat &rightImage, const std::vector< cv::Point2f > &leftCorners, std::vector< unsigned char > &status, cv::Size winSize=cv::Size(6, 3), int maxLevel=3, int iterations=5, float minDisparity=0.0f, float maxDisparity=64.0f, bool ssdApproach=true)
void RTABMAP_EXP calcOpticalFlowPyrLKStereo(cv::InputArray _prevImg, cv::InputArray _nextImg, cv::InputArray _prevPts, cv::InputOutputArray _nextPts, cv::OutputArray _status, cv::OutputArray _err, cv::Size winSize=cv::Size(15, 3), int maxLevel=3, cv::TermCriteria criteria=cv::TermCriteria(cv::TermCriteria::COUNT+cv::TermCriteria::EPS, 30, 0.01), int flags=0, double minEigThreshold=1e-4)