sample_false_positives: Sample false positives from a set of binary images

Usage Arguments

View source: R/sample_false_positives.r

Usage

1
2
3
  sample_false_positives(r_pred_dir = "//ies.jrc.it/h03/CANHEMON/H03_CANHEMON/TMP_FOR_PIETER/test_docker3_out_processed/",
  tile = "ALL", points_to_avoid = NA, mindistance_to_presence = 80,
  perc = 0.01, max_n = 100, parallel = F, nWorkers = 4)

Arguments

r_pred_dir

A directory where binary .tifs predicting presence as 1 and absence as 0 can be found for multiple tiles

tile

Character vector. Names of tile(s) to run. 'ALL will run all tiles in r_pred_dir. Default is 'ALL'

points_to_avoid

A SpatialPoints object describing areas that should be excluded from sampling. These are typically true presence points Optional.

mindistance_to_presence

The distance, in map units, that the sampled false positives should be from the true positives provided in points_to_avoid.

perc

The percentage of the available false positive pixels in each image to sample. Default is 1

\item

max_nThe absolute maximum of locations to extract per image. This value overrides the proportion.

\item

parallelShould the code be run in parallel using the doParallel package? Default is FALSE.

\item

nWorkersIf running the ocde in parallel, how many workers should be used? Default is 4.

Sample false positives from a set of binary images


pieterbeck/CanHeMonR documentation built on May 25, 2019, 7:11 a.m.