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
8fc37994
Commit
8fc37994
authored
Aug 12, 2012
by
Davis King
Browse files
Updated scan_image_pyramid serialization to include the movable rectangle
info.
parent
838caffb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dlib/image_processing/scan_image_pyramid.h
dlib/image_processing/scan_image_pyramid.h
+9
-0
No files found.
dlib/image_processing/scan_image_pyramid.h
View file @
8fc37994
...
...
@@ -155,11 +155,13 @@ namespace dlib
{
serialize
(
item
.
object_box
,
out
);
serialize
(
item
.
rects
,
out
);
serialize
(
item
.
movable_rects
,
out
);
}
friend
void
deserialize
(
detection_template
&
item
,
std
::
istream
&
in
)
{
deserialize
(
item
.
object_box
,
in
);
deserialize
(
item
.
rects
,
in
);
deserialize
(
item
.
movable_rects
,
in
);
}
void
get_mapped_rect_and_metadata
(
...
...
@@ -224,6 +226,8 @@ namespace dlib
std
::
ostream
&
out
)
{
int
version
=
2
;
serialize
(
version
,
out
);
serialize
(
item
.
feats_config
,
out
);
serialize
(
item
.
feats
,
out
);
serialize
(
item
.
det_templates
,
out
);
...
...
@@ -241,6 +245,11 @@ namespace dlib
std
::
istream
&
in
)
{
int
version
=
0
;
deserialize
(
version
,
in
);
if
(
version
!=
2
)
throw
serialization_error
(
"Unsupported version found when deserializing a scan_image_pyramid object."
);
deserialize
(
item
.
feats_config
,
in
);
deserialize
(
item
.
feats
,
in
);
deserialize
(
item
.
det_templates
,
in
);
...
...
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