number_timeseries {nandb} | R Documentation |
Create a number time-series.
Description
Given a stack of images img
, use the first frames_per_set
of them to
create one number image, the next frames_per_set
of them to create the next
number image and so on to get a time-series of number images.
Usage
number_timeseries(
img,
def,
frames_per_set,
overlap = FALSE,
thresh = NULL,
detrend = FALSE,
quick = FALSE,
filt = NULL,
s = 1,
offset = 0,
readout_noise = 0,
gamma = 1,
parallel = FALSE
)
Arguments
img |
A 4-dimensional array of images indexed by |
def |
A character. Which definition of number do you want to use, |
frames_per_set |
The number of frames with which to calculate the successive numbers. |
overlap |
A boolean. If |
thresh |
The threshold or thresholding method (see
|
detrend |
Detrend your data with |
quick |
|
filt |
Do you want to smooth ( |
s |
A positive number. The |
offset |
Microscope acquisition parameters. See reference Dalal et al. |
readout_noise |
Microscope acquisition parameters. See reference Dalal et al. |
gamma |
Factor for correction of number |
parallel |
Would you like to use multiple cores to speed up this
function? If so, set the number of cores here, or to use all available
cores, use |
Details
This may discard some images, for example if 175 frames are in the input and
frames_per_set = 50
, then the last 25 are discarded. If detrending is
selected, it is performed on the whole image stack before the sectioning is
done for calculation of numbers.
Value
An object of class number_ts_img.
See Also
Examples
img <- ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb"))
nts <- number_timeseries(img, "n", frames_per_set = 20, thresh = "Huang")