1. At least one non-transitory 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 position of interest in a reference image of a two-dimensional (2D) image array comprising a plurality of images arranged into multiple rows and multiple columns, each image of the plurality of images to correspond to a respective camera of a plurality of cameras of a 2D camera array comprising the plurality of cameras arranged into multiple rows and multiple columns to correspond to the multiple rows and multiple columns of the image array, the reference image to comprise one of the plurality of images; determine a primary feature of the position of interest; determine a feature window position and a feature window size for a feature window in the reference image, the feature window position to be determined based on the position of interest, the feature window size to be determined based on the feature window position to generate a smallest feature window size based on a number of edge pixels and a proportion of pixels having depths significantly different from pixels of the primary feature, the feature window to exclude at least a portion of the reference image outside of the position of interest; determine, based on the feature window, a corresponding sharpness for each of a plurality of candidate displacement factors for the 2D image array; 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.