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
58f05918
Commit
58f05918
authored
Jan 01, 2014
by
Davis King
Browse files
Made the image_dataset_metadata::box constructable from a rectangle.
parent
8c41c850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
dlib/data_io/image_dataset_metadata.h
dlib/data_io/image_dataset_metadata.h
+12
-0
No files found.
dlib/data_io/image_dataset_metadata.h
View file @
58f05918
...
@@ -27,6 +27,7 @@ namespace dlib
...
@@ -27,6 +27,7 @@ namespace dlib
The main variable of interest is rect. It gives the location of
The main variable of interest is rect. It gives the location of
the box. All the other variables are optional.
the box. All the other variables are optional.
!*/
!*/
box
(
box
(
)
:
)
:
difficult
(
false
),
difficult
(
false
),
...
@@ -36,6 +37,17 @@ namespace dlib
...
@@ -36,6 +37,17 @@ namespace dlib
angle
(
0
)
angle
(
0
)
{}
{}
box
(
const
rectangle
&
rect_
)
:
rect
(
rect_
),
difficult
(
false
),
truncated
(
false
),
occluded
(
false
),
ignore
(
false
),
angle
(
0
)
{}
rectangle
rect
;
rectangle
rect
;
std
::
map
<
std
::
string
,
point
>
parts
;
std
::
map
<
std
::
string
,
point
>
parts
;
...
...
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