Description Usage Arguments Value Author(s) Examples
View source: R/identifyFunctions.R
createBackground detects the still background,
containing all motionless pixels (non particles). Three different methods
to detect the background can be used.
1  | createBackground(colorimages, method = "mean")
 | 
colorimages | 
 Array of class 'TrDm' containing all images, obtained by
  | 
method | 
 Use   | 
Array of class 'TrDm' and 'colorimage' containing detected background.
Marjolein Bruijning, Caspar A. Hallmann & Marco D. Visser
1 2 3 4 5 6 7 8 9 10 11 12 13 14  | ## Not run: 
dir.create("images")
## Create image sequence
traj <- simulTrajec(path="images",
                    nframes=30,nIndividuals=20,domain="square",
                    h=0.01,rho=0.9,
                    sizes=runif(20,0.004,0.006))
## Load images
dir <- "images"
allFullImages <- loadImages (dirPictures=dir,nImages=1:30)
stillBack <- createBackground(allFullImages,method="mean")
plot(stillBack)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.