Commit f165b203 authored by Davis King's avatar Davis King

Added missing assert

parent 1842d866
......@@ -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);
}
......
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