Fix mask resizing when mask is all FG and no BG.
If the mask is a rectangle, its mini-mask pixels become all 1s, and it has no zeros. Scipy imresize fails on that and returns 0s instead. This update fixes the problem.
Showing
想要评论请 注册 或 登录