Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

F/stop question

  • 29-07-2009 5:04am
    #1
    Registered Users, Registered Users 2 Posts: 2,528 ✭✭✭


    I've been up all night trying to figure this out.
    I'm writing a piece of code to normalise exposure times from images with different f-stops.

    If I have an image with an exposure of 1/500sec and f/3.6, and an image with 1/500sec and f/6.3. I want to know what the second image's exposure time would be if it had an f/stop of f3.6. Still with me?

    Right, so here's the formula.
    Shorter time - 
    new exposure time  = original time / 2^(f/stop difference)
    
    Longer time -
    new exposure time  = original time * 2^(f/stop difference)
    

    The problem here is, I dont know what the f/stop difference is.
    How do I know there are exactly 1 and 2/3 stops between f/3.6 and f/6.3 (I think its 5/3 anyway).

    How do I know there are 2/3 stops between f/1.4 and f/1.8.

    How do I calculate that f-stop difference?
    Something to do with logarithms?

    Thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 1,037 ✭✭✭quilmore


    here you go in 1/3rds:
    http://www.riversidecardiology.com/fstop/f-stop.htm#4

    mind you, 1.8 it's not a "pure" F-stop
    1.4 or 2.0 are


  • Closed Accounts Posts: 184 ✭✭chezzer


    its in increments of sqrt(2) isn't it ?


  • Registered Users, Registered Users 2 Posts: 802 ✭✭✭charybdis


    f-number = sqrt(2)^(stops)

    stops = log[sqrt(2)](f-number)

    difference in stops = log[sqrt(2)](6.3) - log[sqrt(2)](3.6) = ~1.6


  • Registered Users, Registered Users 2 Posts: 1,435 ✭✭✭eas


    TomCo wrote: »
    Still with me?


    err.....no. You lost me at "normalise exposure times" :)


  • Registered Users, Registered Users 2 Posts: 2,528 ✭✭✭TomCo


    charybdis wrote: »
    f-number = sqrt(2)^(stops)

    stops = log[sqrt(2)](f-number)

    difference in stops = log[sqrt(2)](6.3) - log[sqrt(2)](3.6) = ~1.6

    Nice, this is exactly what I was looking for. Actually discovered the formula this morning but its nice to get verification.

    I'm using,

    log(f1) - log(f2)
    log(sqrt(2))

    Same thing though, I think.


    Anyone interested in a free and incredibly easy to use, command line based composite HDR image generator?
    Might stick it up when Im finished (if there's interest), image alignment is proving slightly tricky at the moment.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 802 ✭✭✭charybdis


    TomCo wrote: »
    Nice, this is exactly what I was looking for. Actually discovered the formula this morning but its nice to get verification.

    I'm using,

    log(f1) - log(f2)
    log(sqrt(2))

    Same thing though, I think.

    Yeah, just expressed differently using logarithmic identities, which you'd want to do to solve it computationally.
    TomCo wrote: »
    Anyone interested in a free and incredibly easy to use, command line based composite HDR image generator?
    Might stick it up when Im finished (if there's interest), image alignment is proving slightly tricky at the moment.

    You can already use Qtpfsgui via command line (despite the name), but by all means feel free to add your own software.


  • Closed Accounts Posts: 184 ✭✭chezzer


    Now im confused ... I thought it was sqrt(2) ... thats why 2 stops was always exactly double ....

    and sqrt(2) is ~1.4 .. not 1.6 ...

    anyway ... I'm sure I'm wrong...


  • Registered Users, Registered Users 2 Posts: 802 ✭✭✭charybdis


    chezzer wrote: »
    Now im confused ... I thought it was sqrt(2) ... thats why 2 stops was always exactly double ....

    and sqrt(2) is ~1.4 .. not 1.6 ...

    anyway ... I'm sure I'm wrong...

    f-numbers are powers of sqrt(2), i.e.:

    sqrt(2)^0 = 1
    sqrt(2)^1 = ~1.4
    sqrt(2)^2 = 2
    sqrt(2)^3 = ~2.8
    sqrt(2)^4 = 4
    sqrt(2)^5 = ~5.6
    sqrt(2)^6 = 8
    sqrt(2)^7 = ~11
    sqrt(2)^8 = 16

    1.6 is the difference, in stops, between the two f-numbers posted in the original question.


Advertisement