Shoeprint images

Shoeprint images

We need to resize the images so that they are the same size:

We can then overlay the images to see how far apart they are:

We’ll align images within timepoint - this removes the variability due to the individual collecting the data as well as the variability due to wear over time.

Step 3: Match points

Match points are calculated using the K nearest neighbors algorithm, combined with some thresholding by distance.

Step 5: Image Warping

The homography can be used to warp one image onto the other:

map_fcns <- purrr::map(ransac_points, function(.) map_affine_gen(.$homography))


imgs_warp <- purrr::map2(imgs[c(1, 3, 5, 7)], map_fcns, .f = imwarp, direction = "backward", boundary = "neumann")
imgs_warp <- imgs_warp %>% as.imlist()

imgs_unwarp <- imgs[c(2, 4, 6, 8)]

We can then overlay the two images:

Areas that are in the first image only are shown in red; areas in the second image only are shown in blue. Areas in both images are shown in black.