Description Usage Arguments Details Value Author(s) References Examples
View source: R/all_functions_v8.R
Optimize Detection Parameters for running a cell tracking job
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
tc_obj |
a |
lnoise_range |
numeric vector of lnoise values to be used in the optimization step. Can be NULL |
min.px.diam |
integer, minimum diameter of a particle (cell). Particles with a diameter smaller than min.px.diam are discarded |
diameter_range |
numeric vector of diameter values to be used in the optimization step. Can be NULL |
threshold_range |
numeric vector of threshold values to be used in the optimization step. Can be NULL |
target_cell_num |
integer, the expected (optimal) number of cells to be detected in each frame |
threads |
integer, number of cores to use for parallelization |
quantile.val |
numeric, argument passed to EstimateDiameterRange(). If NULL, it is defaulted to 0.99 |
px.margin |
numeric, argument passed to EstimateDiameterRange(). If NULL, it ia defaulted to 2 |
plot |
if 'TRUE', plots results in the end |
verbose |
shall information about the progress of the operation be printed to screen/console |
dryrun |
shall a dryrun be performed |
The lnoise param is used to guide a lowpass blurring operation, while the lobject param is used to guide a highpass background subtraction. The threshold param is used for a background correction following the initial image convolution
lnoise: Characteristic lengthscale of noise in pixels. Additive noise averaged over this length should vanish. May assume any positive floating value. May be also set to 0, in which case only the highpass "background subtraction" operation is performed.
lobject Integer length in pixels somewhat larger than a typical object. Can also be set to 0, in which case only the lowpass "blurring" operation defined by lnoise is done without the background subtraction defined by lobject
threshold Numeric. By default, after the convolution, any negative pixels are reset to 0. Threshold changes the threshhold for setting pixels to 0. Positive values may be useful for removing stray noise or small particles.
a trackedCells object
Damiano Fantini, damiano.fantini@gmail.com
https://www.data-pulse.com/dev_site/cellmigration/ https://www.mathworks.com/matlabcentral/fileexchange/60349-fasttracks
1 2 3 4 5 | x <- get(data(TrackCellsDataset))
x <- OptimizeParams(tc_obj = x, lnoise_range = c(5,7,10),
diameter_range = c(12,14,18),
threshold_range = c(4,7), dryrun = TRUE)
getOptimizedParameters(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.