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
5624ad2c
Commit
5624ad2c
authored
Sep 09, 2014
by
dmitriy.anisimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slight updated ir_affine
parent
4000b35d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
CMakeLists.txt
modules/datasetstools/CMakeLists.txt
+1
-1
ir_affine.cpp
modules/datasetstools/src/ir_affine.cpp
+15
-1
No files found.
modules/datasetstools/CMakeLists.txt
View file @
5624ad2c
set
(
the_description
"datasets tools"
)
ocv_define_module
(
datasetstools opencv_core
)
ocv_define_module
(
datasetstools opencv_core
opencv_features2d
)
modules/datasetstools/src/ir_affine.cpp
View file @
5624ad2c
...
...
@@ -78,13 +78,27 @@ void IR_affineImp::loadDataset(const string &path)
test
.
push_back
(
vector
<
Ptr
<
Object
>
>
());
validation
.
push_back
(
vector
<
Ptr
<
Object
>
>
());
// detect image extension
string
ext
;
vector
<
string
>
fileNames
;
getDirList
(
path
,
fileNames
);
for
(
vector
<
string
>::
iterator
it
=
fileNames
.
begin
();
it
!=
fileNames
.
end
();
++
it
)
{
string
&
name
=
*
it
;
if
(
name
.
length
()
>=
8
&&
name
.
substr
(
0
,
3
)
==
"img"
)
{
ext
=
name
.
substr
(
name
.
length
()
-
4
,
4
);
break
;
}
}
for
(
unsigned
int
i
=
1
;
i
<=
6
;
++
i
)
{
Ptr
<
IR_affineObj
>
curr
(
new
IR_affineObj
);
char
tmp
[
2
];
sprintf
(
tmp
,
"%u"
,
i
);
curr
->
imageName
=
path
+
"img"
+
tmp
+
".ppm"
;
curr
->
imageName
=
path
+
"img"
+
tmp
+
ext
;
if
(
i
>
1
)
{
...
...
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