A rigorous and simple method for the determination of the modulation transfer function (MTF) of a sampled imaging system is presented. One calculates the MTF by imaging bar patterns and calculating the reduction in amplitude of the fundamental frequency components. The optimal set of bar-pattern frequencies that reduce errors from aliased frequency components is derived. Theoretical and experimental data are presented.