Simplified sum_filter_assign() interface.

This commit is contained in:
Davis King 2014-02-15 13:03:38 -05:00
parent d8509d3916
commit 68f95a19bd
2 changed files with 3 additions and 2 deletions

View File

@ -1355,6 +1355,7 @@ namespace dlib
const rectangle& rect
)
{
out.set_size(img.nr(), img.nc());
impl::sum_filter<false>(img,out,rect);
}

View File

@ -413,14 +413,14 @@ namespace dlib
);
/*!
requires
- out.nr() == img.nr()
- out.nc() == img.nc()
- image_type1 == an implementation of array2d/array2d_kernel_abstract.h
and it must contain a scalar type
- image_type2 == an implementation of array2d/array2d_kernel_abstract.h
and it must contain a scalar type
- is_same_object(img,out) == false
ensures
- #out.nr() == img.nr()
- #out.nc() == img.nc()
- for all valid r and c:
- let SUM(r,c) == sum of pixels from img which are inside the rectangle
translate_rect(rect, point(c,r)).