CoWeb

find:
goto:
home

history
links from
printable

login
















Depth of Field Script
Webb - all rights reserved - ©2004
spacer
Author - Andrew M. Young
Email: andrewyoung1@verizon.net
Webpage:

Summary: Depth of field calculations for cinematography and photography.

Instructions: enter focal length (25mm), f/stop (2), circle of confusion (0.001"), and distance (6ft).  Returns near and far depth of field (ft), hyperfocal distance (ft), and depth of focus (in.).  Also has convenient feet / feet,inches / inches converter.

Code:
RPN.4.d \ depth of field
[i]#'25.4';
[h]xaCi/2Pxbxc*/#'12'/;
"DOF"
"[ft"#'12'/;
"f,i"Vvwvfm12;
"in]"m12;
~
"f:focal length in mm"Xa;
"t:t-stop"Xb;
"d:dist in ft"Xd;
"c:circle of confusion (in)"Xc;
~
"HYP"Ch;
"DN:near depth"Chxd*Chxd+/;
"DF:far depth"Chxd*Chxd-/;
"F:depth of focus"xaxb*xc*Ci/;
"F2:depth of focus"2xc*xb*;



0.0138 secs

top of page

Webb - all rights reserved - ©2004
powered by Spinneret 0.10