Perform number()
calculations on all tif images in a folder and save the
resulting number images to disk.
number_folder( folder_path = ".", def, thresh = NULL, detrend = FALSE, quick = FALSE, filt = NULL, s = 1, offset = 0, readout_noise = 0, gamma = 1, parallel = FALSE )
folder_path | The path (relative or absolute) to the folder you wish to process. |
---|---|
def | A character. Which definition of number do you want to use, |
thresh | The threshold or thresholding method (see
|
detrend | Detrend your data with |
quick |
|
filt | Do you want to smooth ( |
s | A positive number. The \(S\)-factor of microscope acquisition. |
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 \(n\) due to the illumination
profile. The default ( |
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 |
Extreme number values (of magnitude greater than 3.40282e+38) will be
written to the TIFF file as NA
, since TIFF files cannot handle such huge
numbers.
if (FALSE) { setwd(tempdir()) img <- ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb")) ijtiff::write_tif(img, "img2.tif") number_folder(def = "n", thresh = "Huang", parallel = 2) }