Skip to content

Commit

Permalink
fix tuple() error in paddedClosing
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunius committed Sep 30, 2022
1 parent 8b4d186 commit 47a805a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipart/AR_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ def paddedClosing(mask, ele, pad, has_cv):
else:
padmask=morphology.closing(padmask, selem=ele)
# trim
padmask=padmask[tuple(slice(pad,-pad), slice(pad,-pad))]
padmask=padmask[tuple([slice(pad,-pad), slice(pad,-pad)])]
return padmask

if thres_low is None:
Expand Down

0 comments on commit 47a805a

Please sign in to comment.