Description Usage Arguments Value
View source: R/image_cluster.R
This function finds clusters of points in an image and returns a list of points in each cluster. Image arrays are first filtered, removing all points below the set 'min_intensity'. Then, a connectivity graph is made with the remaining points in the array after being given xyz coordinate corresponding to a points location within the image array (this is done using the 'array_to_xyz() function). The maximum distance between connected points in the graph is decided by the variable 'max_dist'. A list is then returned containing the points in each graph.
1 2 3 4 5 6 7 8 | image_cluster(
x,
max_dist = 10,
min_intensity = 2000,
min_cluster_size = 50,
sample_prop = 2^(-8),
sample_type = "grid"
)
|
x |
An image array |
max_dist |
Maximum distance between connected points |
min_intensity |
Minimum intensity for points |
min_cluster_size |
Minimum size of cluster in returned list |
sample_prop |
Proportion of |
sample_type |
Takes values "grid" or "random" |
List of clusters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.