A method for generating a projection image from tomographic images first captures (S101) a number of stacked two-dimensional tomographic images representing a tomographic volume. The pixels of the stacked two-dimensional tomographic images are weighted (S102) along a number of projection beams through the tomographic volume with weighting factors that are chosen under the constraint that the sum of all squared weighting factors for each individual projection beam is between a given lower limit and a given upper limit. Then the weighted pixels are summed up (S103) along the number of projection beams for generating the two-dimensional projection image.