mirror of https://github.com/davisking/dlib.git
Simplified sum_filter_assign() interface.
This commit is contained in:
parent
d8509d3916
commit
68f95a19bd
|
@ -1355,6 +1355,7 @@ namespace dlib
|
|||
const rectangle& rect
|
||||
)
|
||||
{
|
||||
out.set_size(img.nr(), img.nc());
|
||||
impl::sum_filter<false>(img,out,rect);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)).
|
||||
|
|
Loading…
Reference in New Issue