1. A dual energy X-ray imaging system comprising: a detection circuitry configured to generate a pre-shot image based on a pre-shot X-ray beam; and a parameter optimizer communicatively coupled to the detection circuitry and configured to determine a first set of main-shot parameters and a second set of main-shot parameters, the parameter optimizer comprising: at least one processor; a communication module stored in a memory and executable by the at least one processor, the communication module configured to receive the pre-shot image from the detection circuitry and receive one or more pre-shot parameters from a source controller of the dual energy X-ray imaging system; an analysis module stored in the memory and executable by the at least one processor, the analysis module communicatively coupled with the communication module and configured to determine one or more image characteristics of the pre-shot image, wherein the one or more image characteristics includes at least one of a histogram of counts of intensity levels of pre-shot image pixels, a noise level, a signal to noise ratio, a contrast, and a contrast to noise ratio; and a determination module stored in the memory and executable by the at least one processor, the determination module communicatively coupled with the analysis module and configured to calculate the first and the second set of main-shot parameters based on the one or more pre-shot parameters and the one or more image characteristics of the pre-shot image, and send the first and the second set of main-shot parameters to the source controller of the dual energy X-ray imaging system.