Commit e4bc15fa authored by Davis King's avatar Davis King

Made gaussian_blur return a rectangle that defines which part of the image

has valid outputs.
parent eeb3c062
......@@ -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);
}
......
......@@ -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.
!*/
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment