# load the sample dorsal pattern image
data(anole)
# plot of the pattern shows it contains the reference pixel
plot(anole$x, anole$y)
# remove the reference pixel, possible outliers and ambiguities
cleaned <- clean_patterns(anole)
# check the plot again
plot(cleaned$x, cleaned$y)
Run the code above in your browser using DataLab