View source: R/sample_false_positives.r
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)
|
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 \itemmax_nThe absolute maximum of locations to extract per image. This value overrides the proportion. \itemparallelShould the code be run in parallel using the doParallel package? Default is FALSE. \itemnWorkersIf running the ocde in parallel, how many workers should be used? Default is 4. |
Sample false positives from a set of binary images
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.