Commit f35a90c8 authored by Davis King's avatar Davis King

Added missing assert

parent b8de7f5a
......@@ -529,6 +529,13 @@ namespace dlib
interpolate_bilinear
)
{
// make sure requires clause is not broken
DLIB_ASSERT( is_same_object(in_img, out_img) == false ,
"\t void resize_image()"
<< "\n\t Invalid inputs were given to this function."
<< "\n\t is_same_object(in_img, out_img): " << is_same_object(in_img, out_img)
);
typedef typename image_type1::type T;
const double x_scale = (img.nc()-1)/(double)std::max<long>((out.nc()-1),1);
const double y_scale = (img.nr()-1)/(double)std::max<long>((out.nr()-1),1);
......
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