1. A method for achieving dynamic range detection in X-ray image processing, the method comprising: acquiring a sensor response based on a plurality of X-ray photons from a sensor, the sensor response comprising a plurality of counts, wherein each count of the plurality of counts comprises an X-ray photon induced transient voltage that exceeds a local set of predetermined voltages, wherein a global set of predetermined voltages comprises the local set of predetermined voltages; modeling a peak height distribution, using a functional form, for a plurality of single photon responses from a histogram of the X-ray photon induced transient voltage; calculating a second peak height distribution for a plurality of simultaneous photons based on the plurality of single photon response and the peak height distribution; performing Poisson weighting on the peak height distribution and the second peak height distribution, thereby generating a Poisson weighted peak height distribution; determining a number of photons using the Poisson weighted peak height distribution; and forming an image based on the determined number of photons at each pixel location of the sensor.