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
9c94a96c
Commit
9c94a96c
authored
Aug 03, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repaired aspect ratio option; fixed comments
parent
2505e7e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
calibration.cpp
samples/cpp/calibration.cpp
+5
-6
No files found.
samples/cpp/calibration.cpp
View file @
9c94a96c
...
...
@@ -10,11 +10,11 @@ using namespace cv;
using
namespace
std
;
/*
example command line when 3 cameras are connected.
tri_calibration -w 4 -h 5 -s 0.025 -o camera_left
.yml -op -oe
example command line for calibration from a live feed.
calibration -w 4 -h 5 -s 0.025 -o camera
.yml -op -oe
example command line for
a list of stored images(for copy-n-paste)
:
tri_
calibration -w 4 -h 5 -s 0.025 -o camera.yml -op -oe image_list.xml
example command line for
calibration from a list of stored images
:
calibration -w 4 -h 5 -s 0.025 -o camera.yml -op -oe image_list.xml
where image_list.xml is the standard OpenCV XML/YAML
file consisting of the list of strings, e.g.:
...
...
@@ -30,8 +30,6 @@ example command line when 3 cameras are connected.
</images>
</opencv_storage>
you can also use a video file or live camera input to calibrate the camera
*/
enum
{
DETECTION
=
0
,
CAPTURING
=
1
,
CALIBRATED
=
2
};
...
...
@@ -307,6 +305,7 @@ int main( int argc, char** argv )
{
if
(
sscanf
(
argv
[
++
i
],
"%f"
,
&
aspectRatio
)
!=
1
||
aspectRatio
<=
0
)
return
printf
(
"Invalid aspect ratio
\n
"
),
-
1
;
flags
|=
CV_CALIB_FIX_ASPECT_RATIO
;
}
else
if
(
strcmp
(
s
,
"-d"
)
==
0
)
{
...
...
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