Description Usage Arguments Value Examples
View source: R/cc_brightness.R
Given a time stack of images and two channels, calculate the cross-correlated brightness of those two channels for each pixel.
1 2 3 4 5 6 7 8 9 10 |
img |
A 4-dimensional array of images indexed by |
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 |
A numeric matrix, the cross-correlated brightness image.
1 2 3 4 5 6 7 8 9 10 | img <- ijtiff::read_tif(system.file("extdata", "two_ch.tif",
package = "nandb"
))
ijtiff::display(detrendr::mean_pillars(img[, , 1, ]))
ijtiff::display(detrendr::mean_pillars(img[, , 2, ]))
b <- brightness(img, def = "e", thresh = "Huang", filt = "median")
ijtiff::display(b[, , 1, 1])
ijtiff::display(b[, , 2, 1])
cc_b <- cc_brightness(img, thresh = "Huang")
ijtiff::display(cc_b[, , 1, 1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.