View source: R/resultsFunctions.R
runBatch | R Documentation |
runBatch
analyzes all image sequences in a specified
directory. Use this function when settings have been optimized
previously on a single or selection of movies/image sequences.
runBatch(
path,
settings = NULL,
dirnames = NULL,
nImages = 1:30,
pixelRange = NULL,
threshold = -0.1,
qthreshold = NULL,
select = "dark",
nn = NULL,
incThres = NULL,
plotOutput = FALSE,
plotType = "trajectories",
L = 20,
R = 2,
weight = c(1, 1, 1),
autoThres = FALSE,
perFrame = FALSE,
methodBg = "mean",
frames = NULL,
saveAll = FALSE
)
path |
A character vector of path name that contains all directories with image sequences. |
settings |
Object of class 'tracked' containing all optimized settings
in attributes,
as obtained from |
dirnames |
If not all image sequences should be analyzed, specify which files to use as a character string. |
nImages |
See |
pixelRange |
See |
threshold |
See |
qthreshold |
See |
select |
See |
nn |
Name of artificial neural net if apply it to images. Default
is |
incThres |
Minimum number of frames that a particle must be present. By default, automated estimate is used. |
plotOutput |
Default is |
plotType |
Default is 'trajectories'. Other options are 'sizes' and 'animation'. |
L |
See |
R |
See |
weight |
See |
autoThres |
See |
perFrame |
See |
methodBg |
See |
frames |
See |
saveAll |
Logical. Set |
Dataframe with estimated population size for each image sequence.
Marjolein Bruijning, Caspar A. Hallmann & Marco D. Visser
loadImages
, createBackground
,
subtractBackground
, identifyParticles
,
trackParticles
.
## Not run:
## Simulate 3 image sequences
wd <- getwd()
folders <- paste0(rep("images",3),1:3)
populations <- c(15,25,50)
dir.create("./batchTest")
setwd("./batchTest")
for(i in 1:length(folders)){
dir.create(folders[i])
traj <- simulTrajec(path=folders[i],
nframes=30,nIndividuals=populations[i],
h=0.01,rho=0.9,
sizes=runif(populations[i],0.004,0.006))
}
setwd(wd)
batchpath <- "./batchTest"
results <- runBatch(path=batchpath,
nImages=1:30,threshold=-0.1,select='dark',
pixelRange=c(1,100),L=50,R=3,
incThres=10)
results
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.