skimage.measure.find_contours
returns results outside masked areas
#7300
Labels
skimage.measure.find_contours
returns results outside masked areas
#7300
Description:
The
skimage.measure.find_contours
function sometimes returns contours which are entirely outside the input array masked areas, and thus that should be filtered out. This was reported in the context of DataLab (see the associated issue).In DataLab, the "detection contour" feature is based on this function and, following a bug report, a workaround was added to simply filter out all contours which coordinates correspond to masked pixels:
Way to reproduce:
The test image may be found here.
The test script which reproduced the issue (before it was fixed by adding the functions mentioned above) is here.
Please also take a look at the associated issue which describes the original problem.
Version information:
The text was updated successfully, but these errors were encountered: