Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
e4bc15fa
Commit
e4bc15fa
authored
Dec 11, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made gaussian_blur return a rectangle that defines which part of the image
has valid outputs.
parent
eeb3c062
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
spatial_filtering.h
dlib/image_transforms/spatial_filtering.h
+2
-2
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
typename
in_image_type
,
typename
out_image_type
>
void
gaussian_blur
(
rectangle
gaussian_blur
(
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
double
sigma
=
1
,
...
...
@@ -1241,7 +1241,7 @@ namespace dlib
ptype
scale
=
sum
(
filt
);
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
typename
in_image_type
,
typename
out_image_type
>
void
gaussian_blur
(
rectangle
gaussian_blur
(
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
double
sigma
=
1
,
...
...
@@ -384,6 +384,8 @@ namespace dlib
inside the image are set to zero.
- #out_img.nc() == in_img.nc()
- #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