+ (float (/ 1 (rayleigh-limit f-stop wavelength))))
+
+(defun rayleigh-limit (f-stop &optional (wavelength 0.0005))
+ "Returns the rayleigh limit in line pairs per mm (MTF 9%) as well as the MTF50"
+ (let ((rayleigh (float (/ 1 1.22 f-stop wavelength))))
+ (values rayleigh (* 0.46 rayleigh))))
+
+(defun maximum-sharpness-aperture (format &optional (wavelength 0.0005))
+ (multiple-value-bind (coc-w coc-h lpm-w lpm-h) (coc-pixels-format format)
+ (declare (ignore coc-w coc-h))
+ (/ 1. (* 1.22 wavelength (/ (min lpm-w lpm-h) 0.46)))))