brightness {nandb} | R Documentation |
Calculate brightness from image series.
Description
Given a time stack of images, brightness()
performs a calculation of the
brightness for each pixel.
Usage
brightness(
img,
def,
thresh = NULL,
detrend = FALSE,
quick = FALSE,
filt = NULL,
s = 1,
offset = 0,
readout_noise = 0,
parallel = FALSE
)
Arguments
img |
A 4-dimensional array in the style of an
ijtiff_img (indexed by |
def |
A character. Which definition of brightness do you want to use,
|
thresh |
The threshold or thresholding method (see
|
detrend |
Detrend your data with |
quick |
If |
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. |
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
A matrix, the brightness image.
References
Digman MA, Dalal R, Horwitz AF, Gratton E. Mapping the Number of Molecules and Brightness in the Laser Scanning Microscope. Biophysical Journal. 2008;94(6):2320-2332. doi: 10.1529/biophysj.107.114645.
Dalal, RB, Digman, MA, Horwitz, AF, Vetri, V, Gratton, E (2008). Determination of particle number and brightness using a laser scanning confocal microscope operating in the analog mode. Microsc. Res. Tech., 71, 1:69-81. doi: 10.1002/jemt.20526.
Examples
img <- ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb"))
ijtiff::display(img[, , 1, 1])
b <- brightness(img, "e", thresh = "Huang")
b <- brightness(img, "B", thresh = "tri")