1. A computer program product comprising logic instructions stored on a non-transitory computer readable medium, which when executed by a processor in an electronic device, configure the processor to implement intelligent computational imaging operations, comprising: receiving a first set of input frames from an image capture device; analyzing the first set of input frames to determine whether multi-image processing is to be implemented, and in response to a determination that multi-image processing is to be implemented: determining a number of image frames to capture a dynamic range of a scene; capturing at least the number of image frames; aligning the number of images; and merging the number of images into a merged image, wherein determining a minimum number of image frames required to capture a scene comprises: estimating a signal to noise ratio (SNR) of the first set of input frames; estimating a dynamic range of the scene; estimating a histogram of the spectral irradiance captured by the imaging device; and incrementally increasing a number of image frames in a sample to maximize a sum of SNR of pixels captured.