brightness_folder {nandb} | R Documentation |
Brightness calculations for every image in a folder.
Description
Perform brightness()
calculations on all tif images in a folder and save the
resulting brightness images to disk.
Usage
brightness_folder(
folder_path = ".",
def,
thresh = NULL,
detrend = FALSE,
quick = FALSE,
filt = NULL,
s = 1,
offset = 0,
readout_noise = 0,
parallel = FALSE
)
Arguments
folder_path |
The path (relative or absolute) to the folder you wish to process. |
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 |
See Also
Examples
## Not run:
setwd(tempdir())
img <- ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb"))
ijtiff::write_tif(img, "img1.tif")
ijtiff::write_tif(img, "img2.tif")
brightness_folder(def = "B", thresh = "Huang")
## End(Not run)