Description Usage Arguments Author(s) Examples
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.
1 | 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
1 2 3 4 5 6 7 8 9 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.