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
eca9345f
Commit
eca9345f
authored
Apr 02, 2013
by
Davis King
Browse files
Fixed a bug I just introduced into the scan_image_pyramid.
parent
c943eb23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dlib/image_processing/scan_image_pyramid.h
dlib/image_processing/scan_image_pyramid.h
+3
-3
No files found.
dlib/image_processing/scan_image_pyramid.h
View file @
eca9345f
...
@@ -717,7 +717,7 @@ namespace dlib
...
@@ -717,7 +717,7 @@ namespace dlib
// convert all the point detections into rectangles at the original image scale and coordinate system
// convert all the point detections into rectangles at the original image scale and coordinate system
for
(
unsigned
long
j
=
0
;
j
<
point_dets
.
size
();
++
j
)
for
(
unsigned
long
j
=
0
;
j
<
point_dets
.
size
();
++
j
)
{
{
const
double
score
=
point_dets
[
j
].
first
+
template_specific_thresh
;
const
double
score
=
point_dets
[
j
].
first
-
template_specific_thresh
;
point
p
=
point_dets
[
j
].
second
;
point
p
=
point_dets
[
j
].
second
;
p
=
feats
[
l
].
feat_to_image_space
(
p
);
p
=
feats
[
l
].
feat_to_image_space
(
p
);
rectangle
rect
=
translate_rect
(
det_templates
[
i
].
object_box
,
p
);
rectangle
rect
=
translate_rect
(
det_templates
[
i
].
object_box
,
p
);
...
@@ -883,7 +883,7 @@ namespace dlib
...
@@ -883,7 +883,7 @@ namespace dlib
part_rect
.
height
()
/
2
).
intersect
(
get_rect
(
feats
[
best_level
]));
part_rect
.
height
()
/
2
).
intersect
(
get_rect
(
feats
[
best_level
]));
saliency_image
.
set_size
(
area
.
height
(),
area
.
width
());
saliency_image
.
set_size
(
area
.
height
(),
area
.
width
());
const
unsigned
long
offset
=
feats_config
.
get_num_dimensions
()
*
(
i
+
get_num_stationary_components_per_detection_template
());
const
unsigned
long
offset
=
get_num_detection_templates
()
+
feats_config
.
get_num_dimensions
()
*
(
i
+
get_num_stationary_components_per_detection_template
());
// build saliency image for pyramid level best_level
// build saliency image for pyramid level best_level
for
(
long
r
=
area
.
top
();
r
<=
area
.
bottom
();
++
r
)
for
(
long
r
=
area
.
top
();
r
<=
area
.
bottom
();
++
r
)
...
@@ -992,7 +992,7 @@ namespace dlib
...
@@ -992,7 +992,7 @@ namespace dlib
rectangle
object_box
;
rectangle
object_box
;
get_mapped_rect_and_metadata
(
feats
.
size
(),
obj
.
get_rect
(),
mapped_rect
,
best_template
,
object_box
,
best_level
,
detection_template_idx
);
get_mapped_rect_and_metadata
(
feats
.
size
(),
obj
.
get_rect
(),
mapped_rect
,
best_template
,
object_box
,
best_level
,
detection_template_idx
);
psi
(
detection_template_idx
)
+
=
1
;
psi
(
detection_template_idx
)
-
=
1
;
Pyramid_type
pyr
;
Pyramid_type
pyr
;
...
...
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