Thin outer contour by removing points overlappling radially from the centroid

thin_contour(
  contour,
  img = NULL,
  centroid = NULL,
  n_angles = 1800,
  as_cimg = TRUE
)

Arguments

contour

results from outer_contour

img

thresholded image (used to calculate the centroid)

centroid

centroid of the image

n_angles

number of unique angles to use

as_cimg

return the points as a cimg object?

Value

either a cimg of points or a data frame of points indicating the boundary