Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
05a40a39
Commit
05a40a39
authored
Aug 14, 2015
by
baisheng lai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove bugs
parent
a88a7eb8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
16 deletions
+22
-16
omnidir.hpp
modules/ccalib/include/opencv2/omnidir.hpp
+4
-0
multiCamCalib.cpp
modules/ccalib/sample/multiCamCalib.cpp
+4
-4
omniCalibration.cpp
modules/ccalib/sample/omniCalibration.cpp
+8
-7
omniStereoCalibration.cpp
modules/ccalib/sample/omniStereoCalibration.cpp
+5
-4
randomPatternCalibration.cpp
modules/ccalib/sample/randomPatternCalibration.cpp
+1
-1
No files found.
modules/ccalib/include/opencv2/omnidir.hpp
View file @
05a40a39
...
...
@@ -38,6 +38,10 @@
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include <opencv2/core.hpp>
#include <vector>
#ifndef __OPENCV_OMNIDIR_HPP__
#define __OPENCV_OMNIDIR_HPP__
...
...
modules/ccalib/sample/multiCamCalib.cpp
View file @
05a40a39
...
...
@@ -7,11 +7,11 @@ using namespace cv;
const
char
*
usage
=
"
\n
example command line for multi-camera calibration by using random pattern
\n
"
" multiCamCalib -nc 5 -pw 800 -ph 600 -ct 1 -fe 0 -nm
10 multi_camera
.xml
\n
"
" multiCamCalib -nc 5 -pw 800 -ph 600 -ct 1 -fe 0 -nm
20 multi_camera_omnidir
.xml
\n
"
"
\n
"
" the file multi_camera.xml is generated by imagelist_creator as
\n
"
" imagelist_creator multi_camera.xml *.*
\n
"
" note the first filename in multi_camera.xml is the pattern, the rest are photo names,
\n
"
" the file multi_camera
_omnidir
.xml is generated by imagelist_creator as
\n
"
" imagelist_creator multi_camera
_omnidir
.xml *.*
\n
"
" note the first filename in multi_camera
_omnidir
.xml is the pattern, the rest are photo names,
\n
"
" photo names should be in form of cameraIdx-timestamp.*, and cameraIdx starts from 0"
;
static
void
help
()
...
...
modules/ccalib/sample/omniCalibration.cpp
View file @
05a40a39
#include"opencv2/omnidir.hpp"
#include"opencv2/core/core.hpp"
#include"opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/omnidir.hpp"
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/highgui.hpp"
#include <vector>
#include <iostream>
#include <string>
...
...
@@ -12,10 +13,10 @@ using namespace std;
const
char
*
usage
=
"
\n
example command line for omnidirectional camera calibration.
\n
"
" omniCalibration -w 6 -h
7 -sw 80 -sh 80 image_
list.xml
\n
"
" omniCalibration -w 6 -h
9 -sw 80 -sh 80 image
list.xml
\n
"
"
\n
"
" the file image
_
list.xml is generated by imagelist_creator as
\n
"
"imagelist_creator image
_
list.xml *.*"
;
" the file imagelist.xml is generated by imagelist_creator as
\n
"
"imagelist_creator imagelist.xml *.*"
;
static
void
help
()
{
...
...
modules/ccalib/sample/omniStereoCalibration.cpp
View file @
05a40a39
#include"opencv2/omnidir.hpp"
#include"opencv2/core/core.hpp"
#include"opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/omnidir.hpp"
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/calib3d.hpp"
#include <vector>
#include <iostream>
#include <string>
...
...
modules/ccalib/sample/randomPatternCalibration.cpp
View file @
05a40a39
...
...
@@ -157,5 +157,5 @@ int main(int argc, char** argv)
Mat
D
;
vector
<
Mat
>
rvec
,
tvec
;
double
rms
=
calibrateCamera
(
objectPoints
,
imagePoints
,
vecImg
[
0
].
size
(),
K
,
D
,
rvec
,
tvec
);
saveCameraParams
(
"camera_params.xml"
,
vecImg
[
0
].
size
(),
patternWidth
,
patternHeight
,
flags
,
K
,
D
,
rvec
,
tvec
,
rms
);
saveCameraParams
(
outputFilename
,
vecImg
[
0
].
size
(),
patternWidth
,
patternHeight
,
flags
,
K
,
D
,
rvec
,
tvec
,
rms
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment