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
f5712fa6
Commit
f5712fa6
authored
Nov 17, 2013
by
Davis King
Browse files
Made the test for using the separable vs. non-separable filters scale
with the size of the filters being applied.
parent
5edb5662
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/image_processing/scan_fhog_pyramid.h
dlib/image_processing/scan_fhog_pyramid.h
+2
-1
No files found.
dlib/image_processing/scan_fhog_pyramid.h
View file @
f5712fa6
...
...
@@ -329,7 +329,8 @@ namespace dlib
{
const
unsigned
long
num_separable_filters
=
w
.
num_separable_filters
();
rectangle
area
;
if
(
num_separable_filters
>
31
*
3
)
// use the separable filters if they would be faster than running the regular filters.
if
(
num_separable_filters
>
31
*
std
::
min
(
w
.
filters
[
0
].
nr
(),
w
.
filters
[
0
].
nc
())
/
3.0
)
{
area
=
spatially_filter_image
(
feats
[
0
],
saliency_image
,
w
.
filters
[
0
]);
for
(
unsigned
long
i
=
1
;
i
<
w
.
filters
.
size
();
++
i
)
...
...
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