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
2570a5af
Commit
2570a5af
authored
8 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8292 from sovrasov:backport_8267
parents
220d1f0b
17ece586
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
camera_calibration.cpp
...al_code/calib3d/camera_calibration/camera_calibration.cpp
+11
-1
No files found.
samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp
View file @
2570a5af
...
...
@@ -109,7 +109,7 @@ public:
}
else
{
if
(
readStringList
(
input
,
imageList
))
if
(
isListOfImages
(
input
)
&&
readStringList
(
input
,
imageList
))
{
inputType
=
IMAGE_LIST
;
nrFrames
=
(
nrFrames
<
(
int
)
imageList
.
size
())
?
nrFrames
:
(
int
)
imageList
.
size
();
...
...
@@ -190,6 +190,16 @@ public:
l
.
push_back
((
string
)
*
it
);
return
true
;
}
static
bool
isListOfImages
(
const
string
&
filename
)
{
string
s
(
filename
);
// Look for file extension
if
(
s
.
find
(
".xml"
)
==
string
::
npos
&&
s
.
find
(
".yaml"
)
==
string
::
npos
&&
s
.
find
(
".yml"
)
==
string
::
npos
)
return
false
;
else
return
true
;
}
public
:
Size
boardSize
;
// The size of the board -> Number of items by width and height
Pattern
calibrationPattern
;
// One of the Chessboard, circles, or asymmetric circle pattern
...
...
This diff is collapsed.
Click to expand it.
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