# NOT RUN {
# align eye points to specific x and y coordinates
# in a 300x300 pixel image
demo_unstandard(1:3) |>
align(pt1 = 0, pt2 = 1,
x1 = 100, x2 = 200, y1 = 100, y2 = 100,
width = 300, height = 300)
# }
# NOT RUN {
orig <- demo_unstandard()
# align to bottom-centre of nose (average position)
align(orig, pt1 = 55, pt2 = 55, fill = "dodgerblue")
# align to pupils of second image
align(orig, ref_img = 2, fill = "dodgerblue")
# }
# NOT RUN {
# }
# NOT RUN {
# procrustes align to average position
# this requires XQuartz on mac and may not run on linux
align(orig, procrustes = TRUE, fill = "dodgerblue")
# }
Run the code above in your browser using DataLab