Calibration methods and related calibration controllers (CC) for calibrating imaging apparatuses (102) such as a 3D computed tomography imager or a 2D x-ray imager. The imaging apparatuses (102) are equipped with a dynamic beam shaper (RF). The dynamic beam shaper (RF) allows adapting the energy profile of a radiation beam (PR) used in the imaging apparatuses (102) to a shape of an object (PAT) to be imaged. A plurality of gain images are acquired in dependence on a shape of the object and the view along which the gain images are acquired or a target gain image is synthesized from a plurality of basis gain images (BGI).