mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added missing assert
This commit is contained in:
parent
1842d866ed
commit
f165b20300
@ -538,6 +538,7 @@ namespace dlib
|
||||
drectangle r
|
||||
) const
|
||||
{
|
||||
DLIB_CASSERT(0 < scale && scale <= 1 , "scale: "<< scale);
|
||||
auto&& rects = any_cast<std::vector<rectangle>>(data.annotation());
|
||||
return image_to_tiled_pyramid<pyramid_type>(rects, scale, r);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user