It provides a kind of for the method based on the image reproducing from a photon counting bin detector or the energy-resolved image data of an intermediate store. The method includes: processing (S1) energy-resolved image data, by executing at least two isolated based decompositions to imitate linear attenuation using the different numbers of basis function, wherein execute first foundation decomposition using the first smaller set of basis function is indicated with obtaining at least one first foundation image, wherein execute the second based decomposition using the second large set of basis function is indicated with obtaining at least one second base image. Method also include rebuild based on decomposed from first foundation obtain described in the first image for indicating of at least one first foundation image, in conjunction with the first image of the information representative that there is at least one described second base image to indicate.