1. At least one machine-readable medium comprising a plurality of instructions that, in response to being executed on a computing device, cause the computing device to: determine a corresponding sharpness for each of a plurality of candidate displacement factors for an image array comprising a plurality of images; determine an optimal displacement factor comprising a candidate displacement factor corresponding to a maximized sharpness of a focus region for a composite image; and transform the image array based on the optimal displacement factor to align regions of the plurality of images that correspond to the focus region.