Commit 0bb3d9f1 authored by Davis King's avatar Davis King

Fixed error in input_rgb_image_pyramid::image_contained_point(). The function

didn't properly account for the new padding on the edge of the pyramid and
might erroneously indicate that a point wasn't inside the original image when
really it was.
parent 7b9154ff
......@@ -534,7 +534,7 @@ namespace dlib
{
auto&& rects = any_cast<std::vector<rectangle>>(data.annotation());
DLIB_CASSERT(rects.size() > 0);
return rects[0].contains(p);
return rects[0].contains(p+rects[0].tl_corner());
}
drectangle tensor_space_to_image_space (
......
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