visualizeTrcks: Visualize Cell Tracks

Description Usage Arguments Value Author(s) References Examples

View source: R/all_functions_v8.R

Description

Annotates an image with cell centroids by adding cell ROIs and drawing cell tracks

Usage

1
2
3
4
5
6
7
8
9
visualizeTrcks(
  tracks,
  width_px,
  height_px,
  i.slice = 1,
  pnt.cex = 1.2,
  lwd = 1.2,
  col = "red"
)

Arguments

tracks

cell tracks

width_px

width in pixels

height_px

height in pixels

i.slice

index of the stack slice to use

pnt.cex

cex for the points (circles) drawn around the cells

lwd

lwd of cell tracks

col

color used for the cell tracks, .g. "red"

Value

None

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
6
x1 <- data.frame(c(10, 30, 25, 55, 43, 39, 75, 72),
                 c(22, 28, 35, 24, 31, 39, 65, 73),
                 c( 1,  2,  3,  4,  5,  6,  7,  8),
                 c( 1,  1,  1,  1,  1,  1,  1,  1))
plot(2, 2, xlim = c(0,1), ylim = c(0,1), xlab = "", ylab = "", las = 2)
cellmigRation:::visualizeTrcks(x1, width_px = 100, height_px = 100)

ocbe-uio/cellmigRation documentation built on Dec. 16, 2021, 10:59 p.m.