Detect the water-sensitive paper from multiple images and do all the analyses in a run. Parallel processing is allowed.
Usage
analyzeImages(
path,
paper_dim = c(76, 26),
distance = 0.7,
display.it = FALSE,
cl = NULL
)Arguments
- path
A character giving the path to the folder containing the images (only!) of the papers.
- paper_dim
A numeric vector of length 2 indicating the length and width (in mm) of the water-sensitive paper.
- distance
A numeric value indicating the distance from the nozzle to the target, in order to estimate the spray drift (%) using the 'German model' for field crops.
- display.it
(Logical) Should the image with the bounding box of the paper be displayed? Default is
TRUE.- cl
An integer indicating the number of parallel processes or an object created by
parallel::makeCluster(). Default ifNULL.
Value
A list of objects of class hydropaper. See more in
analyzePaper().
Examples
path <- system.file('images', package = 'hydropaper')
list.files(path)
#> [1] "field1.JPG" "field2.JPG"
analyzeImages(path)
#> Error in watershed(distm, tolerance = 0.6, ext = s): 'ext' must be a positive integer