Join Now
Join ePHOTOzine, the friendliest photography community.
Upload photos, chat with photographers, win prizes and much more for free!
I was just knocking up a depth-of-field calculator for mattwaggie, and noticed that the code I was using uses the film format as a variable, so the depth of field displayed is different for APS, 35mm, 6x7, 10x8 etc.
Is this right ? The calculation to get hyperfocal distance is:
hyperfocal = (focal * focal) / (aperture * CoC)
where CoC changes depending on format
then:
dofNear = (hyperfocal * distance) / (hyperfocal + (distance-focal))
dofFar = (hyperfocal * distance) / (hyperfocal - (distance-focal))
DOF = dofFar - dofNear
Anyone have any idea what I'm talking about ?
![]()
If I'd have known such a task was being undertaken I could have saved you some time (unless you like doing things like this Bri). I found this a few weeks ago while trying to find a depth of focus table. It's a customizable table where you can alter all the variables (and the look of the table) and it will go away and generate a table for you based on what you enter. DoF table
Alex, I do "things like this" for a living, although I'd much rather be out with my camera.
I wrote my "photobuddy" app as an exercise in writing for PocketPC, and I just converted the DOF calc bit to Windows for Matt. The full app also contains a locations database and a database for recording the camera settings and location of your pics.
Note that the calculations in my app were taken from silverlight as the author says in the code it can be used, so I have converted to C++ and credited him and linked to the site from my app.
Hi Bri
Looking thru your thread ,it looks almost the same as a calculation I submitted to another Forum a month or so ago. Since then I have been got at for mentioning it on this Forum. Your calcs are not quite right, there are a couple of errors. The circle of confusion is what you want them to be. Remember your final answer should hopefully be in meters.
Hi Bri
Hope you are not getting shirty about this. Its only words, no money involved. It wasn`t a month ago I submitted this program it was more than three months ago. Doesn`t time fly. I wrote the program on "Q BASIC", remember it. I then was asked by several people to send them a print out for their camera, which I did. I have a CASIO programmable calculator which I also wrote the program to, handy for carrying around. The manager of my local photoshop also wanted some sheets printed out for several cameras. Didn`t give me a free camera tho.
Stan W
Hey Bri
If you're e-mailing it out, could you send one my way. BTY, you're a braver man than I for doing it in C++. Never could get my head round that one!
Colin
(verkivick@yahoo.co.uk
Stan, chill out. Any time anyone on here dares to talk to you, you seem to take offence.
You have said there are errors in my calculations, and I asked you to "enlighten me". If you don't want to, suit yourself. If someone else on here has upset you, I'm not going to apologise for them. We're on here to help each other. If you can help me, please do. If not....
Colin, it's on my work PC - I will email it tomorrow.
Add a Comment
ePHOTOzine, the web's friendliest photography community.
Upload photos, chat with photographers, win prizes and much more.













