(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)))))
(defun dof-mm (focal-length f-stop distance coc &key (pupil-factor 1))
(defun effective-aperture (focal-length distance aperture)
(* aperture (bellows-factor focal-length distance)))
+
+(defun mtf-scanner (freq dscan-freq &optional (order 3))
+ (abs (expt (kmrcl:sinc (* pi (/ freq dscan-freq))) order)))
+
+(defun freq-mtf-scanner (dscan-freq mtf &optional (order 3))
+ (* dscan-freq (/ (asin (* x (exp (/ (log mtf) order)))) pi)))