1. A method comprising: analyzing a first copy of a frame of raw image data using software image processing of an electronic device before a second copy of the frame of raw image data is processed using hardware image processing of the electronic device; and processing the second copy of the frame of raw image data using the hardware image processing of the electronic device, wherein the hardware image processing of the electronic device is calibrated based at least in part on the analysis of the first copy of the frame of raw image data by the first image processing of the electronic device.