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
e11666b4
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "05361960f252b4d2ff0432a2bbc7b893cf338baf"
Commit
e11666b4
authored
Nov 21, 2013
by
Davis King
Browse files
Added an ignore option to the image dataset metadata file format.
parent
e3818c4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
dlib/data_io/image_dataset_metadata.cpp
dlib/data_io/image_dataset_metadata.cpp
+3
-0
dlib/data_io/image_dataset_metadata.h
dlib/data_io/image_dataset_metadata.h
+3
-1
No files found.
dlib/data_io/image_dataset_metadata.cpp
View file @
e11666b4
...
@@ -76,6 +76,8 @@ namespace dlib
...
@@ -76,6 +76,8 @@ namespace dlib
fout
<<
" truncated='"
<<
b
.
truncated
<<
"'"
;
fout
<<
" truncated='"
<<
b
.
truncated
<<
"'"
;
if
(
b
.
occluded
)
if
(
b
.
occluded
)
fout
<<
" occluded='"
<<
b
.
occluded
<<
"'"
;
fout
<<
" occluded='"
<<
b
.
occluded
<<
"'"
;
if
(
b
.
ignore
)
fout
<<
" ignore='"
<<
b
.
ignore
<<
"'"
;
if
(
b
.
has_label
()
||
b
.
parts
.
size
()
!=
0
)
if
(
b
.
has_label
()
||
b
.
parts
.
size
()
!=
0
)
{
{
...
@@ -186,6 +188,7 @@ namespace dlib
...
@@ -186,6 +188,7 @@ namespace dlib
if
(
atts
.
is_in_list
(
"difficult"
))
temp_box
.
difficult
=
sa
=
atts
[
"difficult"
];
if
(
atts
.
is_in_list
(
"difficult"
))
temp_box
.
difficult
=
sa
=
atts
[
"difficult"
];
if
(
atts
.
is_in_list
(
"truncated"
))
temp_box
.
truncated
=
sa
=
atts
[
"truncated"
];
if
(
atts
.
is_in_list
(
"truncated"
))
temp_box
.
truncated
=
sa
=
atts
[
"truncated"
];
if
(
atts
.
is_in_list
(
"occluded"
))
temp_box
.
occluded
=
sa
=
atts
[
"occluded"
];
if
(
atts
.
is_in_list
(
"occluded"
))
temp_box
.
occluded
=
sa
=
atts
[
"occluded"
];
if
(
atts
.
is_in_list
(
"ignore"
))
temp_box
.
ignore
=
sa
=
atts
[
"ignore"
];
temp_box
.
rect
.
bottom
()
+=
temp_box
.
rect
.
top
()
-
1
;
temp_box
.
rect
.
bottom
()
+=
temp_box
.
rect
.
top
()
-
1
;
temp_box
.
rect
.
right
()
+=
temp_box
.
rect
.
left
()
-
1
;
temp_box
.
rect
.
right
()
+=
temp_box
.
rect
.
left
()
-
1
;
...
...
dlib/data_io/image_dataset_metadata.h
View file @
e11666b4
...
@@ -31,7 +31,8 @@ namespace dlib
...
@@ -31,7 +31,8 @@ namespace dlib
)
:
)
:
difficult
(
false
),
difficult
(
false
),
truncated
(
false
),
truncated
(
false
),
occluded
(
false
)
occluded
(
false
),
ignore
(
false
)
{}
{}
rectangle
rect
;
rectangle
rect
;
...
@@ -43,6 +44,7 @@ namespace dlib
...
@@ -43,6 +44,7 @@ namespace dlib
bool
difficult
;
bool
difficult
;
bool
truncated
;
bool
truncated
;
bool
occluded
;
bool
occluded
;
bool
ignore
;
bool
has_label
()
const
{
return
label
.
size
()
!=
0
;
}
bool
has_label
()
const
{
return
label
.
size
()
!=
0
;
}
/*!
/*!
...
...
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