X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=dof.lisp;h=b937da03b19055df8c85133905be2bc4d355bf8d;hb=5e38a707983711121425bcb9f5f6a88baf832bfc;hp=5dfc5dd06e0dac523d29400f0bc58dd9f2152444;hpb=c9e757cf83865138421a9a09a6237fabbff2aab4;p=cl-photo.git diff --git a/dof.lisp b/dof.lisp index 5dfc5dd..b937da0 100644 --- a/dof.lisp +++ b/dof.lisp @@ -70,6 +70,7 @@ Default resolving power is 5 lpm at 25cm." (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)) @@ -128,3 +129,7 @@ Output: NEAR-POINT, FAR-POINT, TOTAL-DOF, MAGNIFICATION, BLUR-SIZE-OF-INFINITY-P (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))) +