mirror of https://github.com/davisking/dlib.git
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.
This commit is contained in:
parent
7b9154ff92
commit
0bb3d9f1d1
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue