A novel image-processing procedure is proposed for the analysis of sequences of two-dimensional projection images. Sudden events like the merging of bubbles in an evolving foam can be detected and spatio-temporally located in a given projection image sequence. The procedure is based on optical flow computations extended by a forward-backward check for each time step. Compared with prior methods, efficient suppression of noise or false events is achieved owing to uniform foam motion, and the reliability of detection is thus increased. The applicability of the proposed procedure in combination with synchrotron radiography is illustrated by a series of characteristic studies of foams of different kind. First, the detection of single-bubble collapses in aqueous foams is considered. Second, a spatial distribution of coalescence events in metals foamed in casting molds is estimated. Finally, the structural stability of polymer foams containing admixed solid nanoparticles is examined.