Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
7029c66c
Commit
7029c66c
authored
Sep 05, 2016
by
Davis King
Browse files
Added another load_image_dataset() overload for string filenames
parent
6cd2042d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
dlib/data_io/load_image_dataset.h
dlib/data_io/load_image_dataset.h
+14
-0
dlib/data_io/load_image_dataset_abstract.h
dlib/data_io/load_image_dataset_abstract.h
+23
-0
No files found.
dlib/data_io/load_image_dataset.h
View file @
7029c66c
...
...
@@ -229,6 +229,20 @@ namespace dlib
return
load_image_dataset
(
images
,
object_locations
,
image_dataset_file
(
filename
));
}
// ----------------------------------------------------------------------------------------
template
<
typename
array_type
>
void
load_image_dataset
(
array_type
&
images
,
std
::
vector
<
std
::
vector
<
mmod_rect
>>&
object_locations
,
const
std
::
string
&
filename
)
{
load_image_dataset
(
images
,
object_locations
,
image_dataset_file
(
filename
));
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
dlib/data_io/load_image_dataset_abstract.h
View file @
7029c66c
...
...
@@ -181,6 +181,8 @@ namespace dlib
(i.e. it ignores box labels and therefore loads all the boxes in the dataset)
!*/
// ----------------------------------------------------------------------------------------
template
<
typename
array_type
>
...
...
@@ -203,6 +205,27 @@ namespace dlib
field that records the ignored/non-ignored state of each rectangle.
!*/
// ----------------------------------------------------------------------------------------
template
<
typename
array_type
>
void
load_image_dataset
(
array_type
&
images
,
std
::
vector
<
std
::
vector
<
mmod_rect
>
>&
object_locations
,
const
std
::
string
&
filename
);
/*!
requires
- array_type == An array of images. This is anything with an interface that
looks like std::vector<some generic image type> where a "generic image" is
anything that implements the generic image interface defined in
dlib/image_processing/generic_image.h.
ensures
- performs: load_image_dataset(images, object_locations, image_dataset_file(filename));
(i.e. it ignores box labels and therefore loads all the boxes in the dataset)
!*/
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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