Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
7029c66c
Commit
7029c66c
authored
Sep 05, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added another load_image_dataset() overload for string filenames
parent
6cd2042d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
load_image_dataset.h
dlib/data_io/load_image_dataset.h
+14
-0
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