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
e4bc15fa
Commit
e4bc15fa
authored
Dec 11, 2014
by
Davis King
Browse files
Made gaussian_blur return a rectangle that defines which part of the image
has valid outputs.
parent
eeb3c062
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
dlib/image_transforms/spatial_filtering.h
dlib/image_transforms/spatial_filtering.h
+2
-2
dlib/image_transforms/spatial_filtering_abstract.h
dlib/image_transforms/spatial_filtering_abstract.h
+3
-1
No files found.
dlib/image_transforms/spatial_filtering.h
View file @
e4bc15fa
...
@@ -1217,7 +1217,7 @@ namespace dlib
...
@@ -1217,7 +1217,7 @@ namespace dlib
typename
in_image_type
,
typename
in_image_type
,
typename
out_image_type
typename
out_image_type
>
>
void
gaussian_blur
(
rectangle
gaussian_blur
(
const
in_image_type
&
in_img
,
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
out_image_type
&
out_img
,
double
sigma
=
1
,
double
sigma
=
1
,
...
@@ -1241,7 +1241,7 @@ namespace dlib
...
@@ -1241,7 +1241,7 @@ namespace dlib
ptype
scale
=
sum
(
filt
);
ptype
scale
=
sum
(
filt
);
scale
=
scale
*
scale
;
scale
=
scale
*
scale
;
spatially_filter_image_separable
(
in_img
,
out_img
,
filt
,
filt
,
scale
);
return
spatially_filter_image_separable
(
in_img
,
out_img
,
filt
,
filt
,
scale
);
}
}
...
...
dlib/image_transforms/spatial_filtering_abstract.h
View file @
e4bc15fa
...
@@ -353,7 +353,7 @@ namespace dlib
...
@@ -353,7 +353,7 @@ namespace dlib
typename
in_image_type
,
typename
in_image_type
,
typename
out_image_type
typename
out_image_type
>
>
void
gaussian_blur
(
rectangle
gaussian_blur
(
const
in_image_type
&
in_img
,
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
out_image_type
&
out_img
,
double
sigma
=
1
,
double
sigma
=
1
,
...
@@ -384,6 +384,8 @@ namespace dlib
...
@@ -384,6 +384,8 @@ namespace dlib
inside the image are set to zero.
inside the image are set to zero.
- #out_img.nc() == in_img.nc()
- #out_img.nc() == in_img.nc()
- #out_img.nr() == in_img.nr()
- #out_img.nr() == in_img.nr()
- returns a rectangle which indicates what pixels in #out_img are considered
non-border pixels and therefore contain output from the filter.
!*/
!*/
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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