A method is presented for measuring the modulation transfer function of ophthalmic lenses by use of the generation of laser speckle with an integrating sphere. The measurements are performed with a rectangular double-slit aperture positioned at the output port of the integrating sphere. The distance between the lens and the detector determines the spatial frequency being tested; therefore high frequencies are tested close to the lens and low frequencies are tested far away from the lens. We can conclude that the double-slit method can be a versatile technique for comparing the optical quality of ophthalmic lenses from different makers.