if (interactive() && requireNamespace("EBImage")) {
library(pliman)
sev <-
measure_disease(pattern = "sev_leaf",
img_healthy = "sev_healthy",
img_symptoms = "sev_sympt",
img_background = "sev_back",
plot = FALSE,
save_image = TRUE,
show_original = FALSE,
dir_original = image_pliman(),
dir_processed = tempdir())
sad(sev, n = 2)
}
Run the code above in your browser using DataLab