(defun hyperfocal-table (focal-length coc &key (units :feet) (output *standard-output*))
(loop for f-stop in +f-stops+
- do (format output "~4,1F ~,1F~%"
+ do (format output "~4,1F ~,1F~%"
f-stop (hyperfocal focal-length f-stop coc :units units)))
(values))
(loop for focal-length in +focal-lengths+
do (let ((aov (multiple-value-list (aov focal-length (car imager-dim) (cdr imager-dim)
:projection projection))))
- (format output "~5D ~5,1F ~5,1F ~5,1F~%"
+ (format output "~5D ~5,1F ~5,1F ~5,1F~%"
focal-length (nth 0 aov) (nth 1 aov) (nth 2 aov)))))
(values))
(car imager-dim) (cdr imager-dim)
distance
:projection projection))))
- (format output "~8F: ~6F ~6F ~6F ~6F~%"
+ (format output "~8F: ~6F ~6F ~6F ~6F~%"
(mm->length distance units)
(nth 0 fov) (nth 1 fov) (nth 2 fov) (nth 3 fov)))))
(values))
(dolist (distance distances)
(multiple-value-bind (near far dof mag blur) (dof focal-length f-stop distance coc
:units units)
+ (declare (ignorable dof mag blur))
(when (minusp far) (setq far "Inf "))
(format output "~5F/~5F " near far)))
(format output "~%")))