Closed wangg12 closed 5 years ago
Because measure.find_contours
will not create closed contours if the mask touches the edges of the image, I first expand the borders by 1 pixel all the way around the image. Then when I run measure.find_contours
, the contours are displaced by 1 pixel, so I need to subtract them to get their original positions.
OK, thanks @waspinator .
I can not understand why substracting in this line is needed. @waspinator Could you explain it?