Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
b7da9d4b
Commit
b7da9d4b
authored
Dec 04, 2010
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revamped
parent
3c57612f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
stereo_calib.cpp
samples/cpp/stereo_calib.cpp
+17
-16
No files found.
samples/cpp/stereo_calib.cpp
View file @
b7da9d4b
...
...
@@ -2,7 +2,7 @@
/* *************** License:**************************
Oct. 3, 2008
Right to use this code in any way you want without warr
enty, support or any guare
ntee of it working.
Right to use this code in any way you want without warr
anty, support or any guara
ntee of it working.
BOOK: It would be nice if you cited it:
Learning OpenCV: Computer Vision with the OpenCV Library
...
...
@@ -41,13 +41,22 @@
using
namespace
cv
;
using
namespace
std
;
//
// Given a list of chessboard images, the number of corners (nx, ny)
// on the chessboards, and a flag: useCalibrated for calibrated (0) or
// uncalibrated (1: use cvStereoCalibrate(), 2: compute fundamental
// matrix separately) stereo. Calibrate the cameras and display the
// rectified results along with the computed disparity images.
//
int
print_help
()
{
cout
<<
" Given a list of chessboard images, the number of corners (nx, ny)
\n
"
" on the chessboards, and a flag: useCalibrated for
\n
"
" calibrated (0) or
\n
"
" uncalibrated
\n
"
" (1: use cvStereoCalibrate(), 2: compute fundamental
\n
"
" matrix separately) stereo.
\n
"
" Calibrate the cameras and display the
\n
"
" rectified results along with the computed disparity images.
\n
"
<<
endl
;
cout
<<
"Usage:
\n
./stereo_calib -w board_width -h board_height [-nr /*dot not view results*/] <image list XML/YML file>
\n
"
<<
endl
;
return
0
;
}
static
void
StereoCalib
(
const
vector
<
string
>&
imagelist
,
Size
boardSize
,
bool
useCalibrated
=
true
,
bool
showRectified
=
true
)
{
...
...
@@ -335,14 +344,6 @@ static bool readStringList( const string& filename, vector<string>& l )
l
.
push_back
((
string
)
*
it
);
return
true
;
}
int
print_help
()
{
cout
<<
"Usage:
\n
./stereo_calib -w board_width -h board_height [-nr /*dot not view results*/] <image list XML/YML file>
\n
"
;
return
0
;
}
int
main
(
int
argc
,
char
**
argv
)
{
...
...
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