Skip to content

Commit

Permalink
Resolve deprecation of selem argument (now footprint) in skimage.morp…
Browse files Browse the repository at this point in the history
…hology.dilation (#92)

* Update xrai.py

update dilation from skimage.morphology to use footprint argument in place of deprecated selem

* Update xrai.py
  • Loading branch information
davedgd authored Feb 29, 2024
1 parent fc90418 commit f25c28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions saliency/core/xrai.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def _get_segments_felzenszwalb(im,
segs.append(seg)
masks = _unpack_segs_to_masks(segs)
if dilation_rad:
selem = disk(dilation_rad)
masks = [dilation(mask, selem=selem) for mask in masks]
footprint = disk(dilation_rad)
masks = [dilation(mask, footprint=footprint) for mask in masks]
return masks


Expand Down

0 comments on commit f25c28a

Please sign in to comment.