Commit 2b28181d authored by baisheng lai's avatar baisheng lai

modify doxygen commands

parent a337e588
...@@ -46,8 +46,15 @@ ...@@ -46,8 +46,15 @@
#include "opencv2/omnidir.hpp" #include "opencv2/omnidir.hpp"
#include <string> #include <string>
#include <iostream> #include <iostream>
/** @defgroup mulcalib Multiple cameras calibration toolbox
*/
using namespace cv; using namespace cv;
//! @addtogroup mulcalib
//! @{
#define HEAD -1 #define HEAD -1
#define INVALID -2 #define INVALID -2
...@@ -200,4 +207,5 @@ private: ...@@ -200,4 +207,5 @@ private:
std::vector<std::vector<Mat> > _omEachCamera, _tEachCamera; std::vector<std::vector<Mat> > _omEachCamera, _tEachCamera;
}; };
//! @}
#endif #endif
\ No newline at end of file
...@@ -41,10 +41,15 @@ ...@@ -41,10 +41,15 @@
#ifndef __OPENCV_OMNIDIR_HPP__ #ifndef __OPENCV_OMNIDIR_HPP__
#define __OPENCV_OMNIDIR_HPP__ #define __OPENCV_OMNIDIR_HPP__
/** @defgroup omnidir Omnidirectional camera calibration
*/
namespace cv namespace cv
{ {
namespace omnidir namespace omnidir
{ {
//! @addtogroup omnidir
//! @{
enum { enum {
CALIB_USE_GUESS = 1, CALIB_USE_GUESS = 1,
CALIB_FIX_SKEW = 2, CALIB_FIX_SKEW = 2,
...@@ -221,9 +226,12 @@ namespace omnidir ...@@ -221,9 +226,12 @@ namespace omnidir
@param numDisparities The parameter 'numDisparities' in StereoSGBM, see StereoSGBM for details. @param numDisparities The parameter 'numDisparities' in StereoSGBM, see StereoSGBM for details.
@param SADWindowSize The parameter 'SADWindowSize' in StereoSGBM, see StereoSGBM for details. @param SADWindowSize The parameter 'SADWindowSize' in StereoSGBM, see StereoSGBM for details.
@param disparity Disparity map generated by stereo matching @param disparity Disparity map generated by stereo matching
@param pointCloud Point cloud of 3D reconstruction, with type CV_64FC3 @param image1Rec Rectified image of the first image
@param image2Rec rectified image of the second image
@param newSize Image size of rectified image, see omnidir::undistortImage @param newSize Image size of rectified image, see omnidir::undistortImage
@param Knew New camera matrix of rectified image, see omnidir::undistortImage @param Knew New camera matrix of rectified image, see omnidir::undistortImage
@param pointCloud Point cloud of 3D reconstruction, with type CV_64FC3
@param pointType Point cloud type, it can be XYZRGB or XYZ
*/ */
CV_EXPORTS_W void stereoReconstruct(InputArray image1, InputArray image2, InputArray K1, InputArray D1, InputArray xi1, CV_EXPORTS_W void stereoReconstruct(InputArray image1, InputArray image2, InputArray K1, InputArray D1, InputArray xi1,
InputArray K2, InputArray D2, InputArray xi2, InputArray R, InputArray T, int flag, int numDisparities, int SADWindowSize, InputArray K2, InputArray D2, InputArray xi2, InputArray R, InputArray T, int flag, int numDisparities, int SADWindowSize,
...@@ -293,6 +301,7 @@ namespace internal ...@@ -293,6 +301,7 @@ namespace internal
//void dAB(InputArray A, InputArray B, OutputArray dABdA, OutputArray dABdB); //void dAB(InputArray A, InputArray B, OutputArray dABdA, OutputArray dABdB);
} // internal } // internal
//! @}
} // omnidir } // omnidir
......
...@@ -45,6 +45,9 @@ ...@@ -45,6 +45,9 @@
#include "opencv2/features2d.hpp" #include "opencv2/features2d.hpp"
#include "opencv2/highgui.hpp" #include "opencv2/highgui.hpp"
/** @defgroup ranPattern Random pattern calibration pattern
*/
using namespace cv; using namespace cv;
/** @brief Class for finding features points and corresponding 3D in world coordinate of /** @brief Class for finding features points and corresponding 3D in world coordinate of
a "random" pattern, which can be to be used in calibration. It is useful when pattern is a "random" pattern, which can be to be used in calibration. It is useful when pattern is
...@@ -56,6 +59,10 @@ Please refer to paper ...@@ -56,6 +59,10 @@ Please refer to paper
Calibration Toolbox Using A Feature Descriptor-Based Calibration Calibration Toolbox Using A Feature Descriptor-Based Calibration
Pattern", in IROS 2013. Pattern", in IROS 2013.
*/ */
//! @addtogroup ranPattern
//! @{
class CV_EXPORTS randomPatternCornerFinder class CV_EXPORTS randomPatternCornerFinder
{ {
public: public:
...@@ -164,5 +171,6 @@ private: ...@@ -164,5 +171,6 @@ private:
int _imageWidth, _imageHeight; int _imageWidth, _imageHeight;
}; };
//! @}
#endif #endif
\ No newline at end of file
...@@ -764,7 +764,7 @@ void cv::omnidir::internal::initializeStereoCalibration(InputOutputArrayOfArrays ...@@ -764,7 +764,7 @@ void cv::omnidir::internal::initializeStereoCalibration(InputOutputArrayOfArrays
const Size& size1, const Size& size2, OutputArray om, OutputArray T, OutputArrayOfArrays omL, OutputArrayOfArrays tL, OutputArray K1, OutputArray D1, OutputArray K2, OutputArray D2, const Size& size1, const Size& size2, OutputArray om, OutputArray T, OutputArrayOfArrays omL, OutputArrayOfArrays tL, OutputArray K1, OutputArray D1, OutputArray K2, OutputArray D2,
double &xi1, double &xi2, int flags, OutputArray idx) double &xi1, double &xi2, int flags, OutputArray idx)
{ {
int n = objectPoints.total(); int n = (int)objectPoints.total();
Mat idx1, idx2; Mat idx1, idx2;
Matx33d _K1, _K2; Matx33d _K1, _K2;
Matx14d _D1, _D2; Matx14d _D1, _D2;
...@@ -1620,15 +1620,13 @@ void cv::omnidir::stereoReconstruct(InputArray image1, InputArray image2, InputA ...@@ -1620,15 +1620,13 @@ void cv::omnidir::stereoReconstruct(InputArray image1, InputArray image2, InputA
} }
} }
} }
int nPoints = 0;
if (pointType == XYZ) if (pointType == XYZ)
{ {
nPoints = (int)_pointCloud.size();
Mat(_pointCloud).convertTo(pointCloud, CV_MAKE_TYPE(CV_32F, 3)); Mat(_pointCloud).convertTo(pointCloud, CV_MAKE_TYPE(CV_32F, 3));
} }
else if (pointType == XYZRGB) else if (pointType == XYZRGB)
{ {
nPoints = (int)_pointCloudColor.size();
Mat(_pointCloudColor).convertTo(pointCloud, CV_MAKE_TYPE(CV_32F, 6)); Mat(_pointCloudColor).convertTo(pointCloud, CV_MAKE_TYPE(CV_32F, 6));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment