added special cases to RGBDOdometry (translation only, rotation only)
This commit is contained in:
@@ -629,13 +629,19 @@ namespace cv
|
||||
* Estimate the rigid body motion from frame0 to frame1. The method is based on the paper
|
||||
* "Real-Time Visual Odometry from Dense RGB-D Images", F. Steinbucker, J. Strum, D. Cremers, ICCV, 2011.
|
||||
*/
|
||||
CV_EXPORTS struct TransformationType
|
||||
{
|
||||
enum { ROTATION = 1,
|
||||
TRANSLATION = 2,
|
||||
RIGID_BODY_MOTION = 4
|
||||
};
|
||||
};
|
||||
CV_EXPORTS bool RGBDOdometry( cv::Mat& Rt,
|
||||
const cv::Mat& image0, const cv::Mat& depth0, const cv::Mat& mask0,
|
||||
const cv::Mat& image1, const cv::Mat& depth1, const cv::Mat& mask1,
|
||||
const cv::Mat& cameraMatrix, const std::vector<int>& iterCounts,
|
||||
const std::vector<float>& minGradientMagnitudes,
|
||||
float minDepth, float maxDepth, float maxDepthDiff );
|
||||
|
||||
float minDepth, float maxDepth, float maxDepthDiff, int transformType=TransformationType::RIGID_BODY_MOTION );
|
||||
}
|
||||
|
||||
#include "opencv2/contrib/retina.hpp"
|
||||
|
Reference in New Issue
Block a user