0

Calculating depth of field

Forums > Taking photos > Calculating depth of field

Join Now

Join ePHOTOzine, the friendliest photography community.

Upload photos, chat with photographers, win prizes and much more for free!

Leave a Comment
    First · Prev | 1 · 2 · 3 · 4 · 5 · 6 · 7 | Next · Last
    Big Bri
    11
    14836 forum posts England
    25 Jun 2003 - 11:00 AM
    0

    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 ?

    Smile

    Sponsored Links
    Sponsored Links
    25 Jun 2003 - 11:00 AM

    Join ePHOTOzine for free and remove these adverts.

    simonf
    9
    108 forum posts
    25 Jun 2003 - 11:27 AM
    0

    seems about right to me.

    If you want to calculate the CoC then that is

    1/(1300/d)
    where d is the square root of the sum of the squared lengths of the film.

    Big Bri
    11
    14836 forum posts England
    25 Jun 2003 - 11:38 AM
    0

    excellent, then my calculations are correct

    If anyone want the app (runs on Windows) please post here.

    zander
    9
    1570 forum posts England17 Constructive Critique Points
    25 Jun 2003 - 12:22 PM
    0

    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

    Big Bri
    11
    14836 forum posts England
    25 Jun 2003 - 12:35 PM
    0

    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.

    Big Bri
    11
    14836 forum posts England
    25 Jun 2003 - 12:35 PM
    0

    btw Matt, I have emailed it to your yahoo address. hope it hasn't changed.

    zander
    9
    1570 forum posts England17 Constructive Critique Points
    25 Jun 2003 - 1:27 PM
    0

    Sounds like you've got yourself a useful little app there. Personnaly I see enough of programming computers and their temperamental ways at work.

    Badger
    9
    4736 forum posts United Kingdom20 Constructive Critique Points
    25 Jun 2003 - 3:31 PM
    0

    Now that is real service Bri, I'll check my e-mail when I'm at home after six.
    Thanks.
    Matt

    Big Bri
    11
    14836 forum posts England
    25 Jun 2003 - 3:37 PM
    0

    Beats working Wink

    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.

    Big Bri
    11
    14836 forum posts England
    25 Jun 2003 - 4:27 PM
    0

    would you care to enlighten me as to the errors ?

    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

    Big Bri
    11
    14836 forum posts England
    25 Jun 2003 - 10:31 PM
    0

    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.

    BOB S
    9
    2621 forum posts
    25 Jun 2003 - 10:44 PM
    0

    Hey Big Bri - my new Nikon D100 and my old Nikon FM both have a button to press to view DOF - whats all this about working it out on a PC ??
    Unless you are carrying about a very long tape measure what is the point ?

    BOB

    First · Prev | 1 · 2 · 3 · 4 · 5 · 6 · 7 | Next · Last

    Add a Comment

    You must be a member to leave a comment

    Username:
    Password:
    Remember me:
    Un-tick this box if you want to login each time you visit.