pdollar / toolbox

Piotr's Image & Video Matlab Toolbox
849 stars 500 forks source link

bbapply-embed boundary condition check #2

Closed una-dinosauria closed 9 years ago

una-dinosauria commented 9 years ago

This line checks whether the embedded box will fit in the passed image, presumably to avoid runtime exceptions.

However, both x and y locations are checked against the second dimension of the image, when I believe y should be checked against the first dimension. This stopped the exceptions for me. Maybe issuing a warning that some boxes are not being painted would be useful.