1. An electronic device for selecting a transform, comprising: at least one image sensor; a memory; a processor coupled to the memory and to the at least one image sensor, wherein the processor is configured to: obtain at least two images from the at least one image sensor; characterize structural content of each of the at least two images to produce a characterization for each image that quantifies the structural content, wherein the processor is configured to extract keypoints from at least one of the images; select at least one transform from a set of transforms based on at least one characterization by determining whether a number of the extracted keypoints meets a keypoint number criterion and whether a keypoint distribution of the extracted keypoints meets a keypoint distribution criterion; and apply the at least one transform to at least one of the images to substantially align the at least two images.