seung-lab / connected-components-3d

Connected components on discrete and continuous multilabel 3D & 2D images. Handles 26, 18, and 6 connected variants; periodic boundaries (4, 8, & 6)
GNU Lesser General Public License v3.0
356 stars 42 forks source link

dust sugnature #101

Closed doiko closed 1 year ago

doiko commented 1 year ago

dust signature does not contain connectivity parameter although is an acceptable one. Consider adding it to allow pre-commit working Thanks!

def dust(img, threshold, in_place=False): # real signature unknown; restored from __doc__
    """
    dust(img, threshold, in_place=False) -> np.ndarray

      Remove from the input image connected components
      smaller than threshold ("dust"). The name of the function
      can be read as a verb "to dust" the image.

      img: 2D or 3D image
      threshold: discard components smaller than this in voxels
      connectivity: cc3d connectivity to use
      in_place: whether to modify the input image or perform
        dust 

      Returns: dusted image
    """
    pass
william-silversmith commented 1 year ago

Thank you Dimitris!