identify_thresholded_objects {Bioi} | R Documentation |
This function is deprecated. It now calls the more efficient find_blobs method.
This function takes a matrix corresponding to a thresholded image and returns a matrix of the same size, where all adjacent, thresholded pixels are the same integer corresponding to that object's cluster number.
identify_thresholded_objects(img, pixRange = 50)
img |
A thresholded matrix (where non-object pixels are assigned a value of 0). |
pixRange |
This parameter is now obsolete. Previously, the parameter denoted an integer number of pixels to specify a search region. Execution was faster when this value was small. However, the value needed to be larger than the diameter of the largest continuous object in the image. |
Zach Colburn
# Generate a random matrix.
set.seed(10)
mat <- matrix(runif(70), nrow = 7)
# Arbitrarily say that everything below 0.8 is background.
mat[mat < 0.8] <- 0
# Find blobs.
identify_thresholded_objects(mat)