Fix mask resizing crash with tiny masks.
skimage.transform.resize() crashes with a floating point exception if the image has 1-pixel width or height and the mode=“reflection”. Changing mode to “constant” (the default) fixes the issue. And, it’s the correct mode to use anyway.
Showing
想要评论请 注册 或 登录