get_optimal_builtup() has been renamed to DoU_get_optimal_builtup() to create a more consistent API and to better indicate that this function is specifically designed for detecting the optimal builtup threshold in the context of the DEGURBA classification with DoU_classify_units().
get_optimal_builtup(
data,
density_threshold = 1500,
size_threshold = 5000,
directions = 4
)optimal built-up area threshold
path to the directory with the data, or named list with the data as returned by function DoU_preprocess_grid(). Ideally, it contains data on a global scale.
numeric. Minimum population density per permanent land
numeric. Minimum population size
integer. Which cells are considered adjacent: 4 for rooks case (horizontal and vertical neighbours) or 8 for queens case (horizontal, vertical and diagonal neighbours)