Added missing assert

This commit is contained in:
Davis King 2016-09-04 14:01:32 -04:00
parent 1842d866ed
commit f165b20300

View File

@ -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);
}