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
555b7c8a
Commit
555b7c8a
authored
Oct 31, 2013
by
Davis King
Browse files
merged
parents
1b452aa2
068fcd9a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
dlib/image_transforms/spatial_filtering.h
dlib/image_transforms/spatial_filtering.h
+1
-3
dlib/image_transforms/spatial_filtering_abstract.h
dlib/image_transforms/spatial_filtering_abstract.h
+6
-0
dlib/test/queue.cpp
dlib/test/queue.cpp
+1
-1
dlib/test/stack.cpp
dlib/test/stack.cpp
+1
-1
No files found.
dlib/image_transforms/spatial_filtering.h
View file @
555b7c8a
...
@@ -124,9 +124,7 @@ namespace dlib
...
@@ -124,9 +124,7 @@ namespace dlib
const
in_image_type
&
in_img
,
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
out_image_type
&
out_img
,
const
matrix_exp
<
EXP
>&
filter
,
const
matrix_exp
<
EXP
>&
filter
,
T
scale
,
T
scale
bool
use_abs
=
false
,
bool
add_to
=
false
)
)
{
{
COMPILE_TIME_ASSERT
(
pixel_traits
<
typename
in_image_type
::
type
>::
has_alpha
==
false
);
COMPILE_TIME_ASSERT
(
pixel_traits
<
typename
in_image_type
::
type
>::
has_alpha
==
false
);
...
...
dlib/image_transforms/spatial_filtering_abstract.h
View file @
555b7c8a
...
@@ -36,6 +36,9 @@ namespace dlib
...
@@ -36,6 +36,9 @@ namespace dlib
- scale != 0
- scale != 0
- filter.nr() % 2 == 1 (i.e. must be odd)
- filter.nr() % 2 == 1 (i.e. must be odd)
- filter.nc() % 2 == 1 (i.e. must be odd)
- filter.nc() % 2 == 1 (i.e. must be odd)
- if (pixel_traits<typename in_image_type::type>::grayscale == false) then
- use_abs == false && add_to == false
(i.e. You can only use the use_abs and add_to options with grayscale images)
ensures
ensures
- Applies the given spatial filter to in_img and stores the result in out_img (i.e.
- Applies the given spatial filter to in_img and stores the result in out_img (i.e.
cross-correlates in_img with filter). Also divides each resulting pixel by scale.
cross-correlates in_img with filter). Also divides each resulting pixel by scale.
...
@@ -88,6 +91,9 @@ namespace dlib
...
@@ -88,6 +91,9 @@ namespace dlib
- is_vector(col_filter) == true
- is_vector(col_filter) == true
- row_filter.size() % 2 == 1 (i.e. must be odd)
- row_filter.size() % 2 == 1 (i.e. must be odd)
- col_filter.size() % 2 == 1 (i.e. must be odd)
- col_filter.size() % 2 == 1 (i.e. must be odd)
- if (pixel_traits<typename in_image_type::type>::grayscale == false) then
- use_abs == false && add_to == false
(i.e. You can only use the use_abs and add_to options with grayscale images)
ensures
ensures
- Applies the given separable spatial filter to in_img and stores the result in out_img.
- Applies the given separable spatial filter to in_img and stores the result in out_img.
Also divides each resulting pixel by scale. Calling this function has the same
Also divides each resulting pixel by scale. Calling this function has the same
...
...
dlib/test/queue.cpp
View file @
555b7c8a
...
@@ -354,7 +354,7 @@ namespace
...
@@ -354,7 +354,7 @@ namespace
for
(
int
i
=
0
;
i
<
100
;
++
i
)
for
(
int
i
=
0
;
i
<
100
;
++
i
)
{
{
int
a
=
9
;
int
a
=
9
;
go
.
remove_any
(
a
);
q
.
remove_any
(
a
);
DLIB_TEST
(
a
==
3
);
DLIB_TEST
(
a
==
3
);
}
}
DLIB_TEST
(
go
.
size
()
==
0
);
DLIB_TEST
(
go
.
size
()
==
0
);
...
...
dlib/test/stack.cpp
View file @
555b7c8a
...
@@ -260,7 +260,7 @@ namespace
...
@@ -260,7 +260,7 @@ namespace
for
(
int
i
=
0
;
i
<
100
;
++
i
)
for
(
int
i
=
0
;
i
<
100
;
++
i
)
{
{
int
a
=
9
;
int
a
=
9
;
go
.
remove_any
(
a
);
a1
.
remove_any
(
a
);
DLIB_TEST
(
a
==
3
);
DLIB_TEST
(
a
==
3
);
}
}
DLIB_TEST
(
go
.
size
()
==
0
);
DLIB_TEST
(
go
.
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