Temporally multiplexed Fourier holography and pattern recognition of femtosecond-duration images