if (interactive() && requireNamespace("EBImage")) {
library(pliman)
# a list of objects
efourier(contours) |> efourier_coefs()
# one object, normalized coefficients
efourier(contours[[4]]) |>
efourier_norm() |>
efourier_coefs()
}
Run the code above in your browser using DataLab