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
0aa89e07
Commit
0aa89e07
authored
Sep 15, 2011
by
Davis King
Browse files
Improved the error messages generated by the structural_svm_object_detection_problem.
parent
b721e098
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
dlib/svm/structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+6
-4
No files found.
dlib/svm/structural_svm_object_detection_problem.h
View file @
0aa89e07
...
...
@@ -214,13 +214,15 @@ namespace dlib
string
temp
=
sout
.
str
();
sout
.
str
(
""
);
sout
<<
wrap_string
(
temp
,
0
,
0
)
<<
endl
<<
endl
;
sout
<<
"image index "
<<
idx
<<
endl
;
sout
<<
"overlap_eps: "
<<
overlap_eps
<<
endl
;
sout
<<
"best possible overlap: "
<<
area
/
total_area
<<
endl
;
sout
<<
"best possible overlap: "
<<
area
/
total_area
<<
endl
;
sout
<<
"truth rect: "
<<
rects
[
idx
][
i
]
<<
endl
;
sout
<<
"truth rect width/height: "
<<
rects
[
idx
][
i
].
width
()
/
(
double
)
rects
[
idx
][
i
].
height
()
<<
endl
;
sout
<<
"truth rect area: "
<<
rects
[
idx
][
i
].
area
()
<<
endl
;
sout
<<
"truth rect: "
<<
rects
[
idx
][
i
]
<<
endl
;
sout
<<
"nearest detection template rect: "
<<
mapped_rects
[
i
]
<<
endl
;
sout
<<
"image index "
<<
idx
<<
endl
;
sout
<<
"nearest detection template rect width/height: "
<<
mapped_rects
[
i
].
width
()
/
(
double
)
mapped_rects
[
i
].
height
()
<<
endl
;
sout
<<
"nearest detection template rect area: "
<<
mapped_rects
[
i
].
area
()
<<
endl
;
throw
dlib
::
impossible_labeling_error
(
sout
.
str
());
}
...
...
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