CentroidArray: Build a Centroid Array

Description Usage Arguments Value Author(s) References Examples

View source: R/all_functions_v8.R

Description

Create an array containing centroid data for particles identified in each frame of the imported TIFF image stack

Usage

1
CentroidArray(stack, lobject, threshold, dryrun = FALSE)

Arguments

stack

3D matrix loaded to workspace from .tif stack

lobject

Integer length in pixels somewhat larger than a typical object

threshold

the minimum brightness of a pixel that might be local maxima

dryrun

logical, shall the execution be skipped

Value

data.frame of centroids, with 4 columns corresponding to x-position of centroid, y-postion of centroid, brightness, and square of the radius of gyration

Author(s)

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/cellmigration/ https://www.mathworks.com/matlabcentral/fileexchange/60349-fasttracks

Examples

1
2
3
4
5
# by default, the dryrun argument is set to FALSE
df <- get(data(TrackCellsDataset))
x0 <- getCellImages(df)
y0 <- cellmigRation:::CentroidArray(x0, 16, 10, TRUE)
y0

ocbe-uio/CellMigRation documentation built on Dec. 26, 2021, 10:19 p.m.