cc_brightness_timeseries {nandb} | R Documentation |
Create a cross-correlated brightness time-series.
Description
Given a stack of images img
, use the first frames_per_set
of them to
create one cross-correlated brightness image, the next frames_per_set
of
them to create the next and so on to get a time-series of cross-correlated
brightness images.
Usage
cc_brightness_timeseries(
img,
frames_per_set,
overlap = FALSE,
ch1 = 1,
ch2 = 2,
thresh = NULL,
detrend = FALSE,
quick = FALSE,
filt = NULL,
parallel = FALSE
)
Arguments
img |
A 4-dimensional array of images indexed by |
frames_per_set |
The number of frames with which to calculate the successive cross-correlated brightnesses. This may discard some images, for example if 175 frames are in the input and
|
overlap |
A boolean. If |
ch1 |
A natural number. The index of the first channel to use. |
ch2 |
A natural number. The index of the second channel to use. |
thresh |
Do you want to apply an intensity threshold prior to
calculating cross-correlated brightness (via
|
detrend |
Detrend your data with |
quick |
|
filt |
Do you want to smooth ( |
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 |
Value
An array where the i
th slice is the i
th cross-correlated
brightness image.
See Also
Examples
img <- ijtiff::read_tif(system.file("extdata", "two_ch.tif",
package = "nandb"
))
cc_bts <- cc_brightness_timeseries(img, 10,
thresh = "Huang",
filt = "median", parallel = 2
)
ijtiff::display(cc_bts[, , 1, 1])