# \donttest{
library(sf)
# Create a simple binary shape (square)
binary_shape <- st_as_sf(st_sfc(st_polygon(list(rbind(
c(0, 0), c(1, 0), c(1, 1), c(0, 1), c(0, 0)
)))))
# Create a reference shape (slightly shifted square)
reference_shape <- st_as_sf(st_sfc(st_polygon(list(rbind(
c(0.1, 0.1), c(1.1, 0.1), c(1.1, 1.1), c(0.1, 1.1), c(0.1, 0.1)
)))))
# Apply Quality Control
result <- Quality_control(binary_shape, reference_shape)
print(result)
# }
Run the code above in your browser using DataLab