This function finds 'threads' hanging off of the edges of blobs in an image, allowing the user to trim them
Source:R/RcppExports.R
find_threads.Rd
This function finds 'threads' hanging off of the edges of blobs in an image, allowing the user to trim them
Arguments
- im
A numeric matrix representing an image, with non-zero values representing pixels to display
- min_neighbors
the minimum number of neighbors a pixel must have to be retained
- maxit
the maximum number of iterations to run the thread trimming algorithm. Default: 15.
- diagonal
Whether to count diagonal elements as valid neighbors