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
715ca399
Commit
715ca399
authored
Nov 29, 2010
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs
parent
8c48f3be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
calibration_artificial.cpp
samples/cpp/calibration_artificial.cpp
+11
-1
No files found.
samples/cpp/calibration_artificial.cpp
View file @
715ca399
...
...
@@ -9,7 +9,14 @@
using
namespace
cv
;
using
namespace
std
;
void
help
()
{
cout
<<
"
\n
This code generates an artificial camera and artificial chessboard views,
\n
"
<<
"and then calibrates. It is basically test code for calibration that shows
\n
"
<<
"how to package calibration points and then calibrate the camera.
\n
"
<<
"Call:
\n
"
<<
"./calibration_artificial
\n
"
<<
endl
;
}
namespace
cv
{
...
...
@@ -53,8 +60,11 @@ template<class T> ostream& operator<<(ostream& out, const Mat_<T>& mat)
return
out
;
}
int
main
()
{
help
();
cout
<<
"Initializing background..."
;
Mat
background
(
imgSize
,
CV_8UC3
);
randu
(
background
,
Scalar
::
all
(
32
),
Scalar
::
all
(
255
));
...
...
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