c# - How to translate shutter speed values into usable data? -


i'm gathering light statistics of exif data large collection of photos , i'm trying find simplest way (i.e. performance doesn't matter) of translating exposure time values to/from usable data. there (as far can find) no standard values camera manufacturers might use i.e. can't scan web random images , hard-code map.

here sample set of values i've encountered (" indicates seconds):

279", 30", 5", 3.2", 1.6", 1.3", 1", 1/1.3, 1/1.6, 1/2, 1/2.5, 1/3, 1/4, 1/5, 1/8, 1/13, 1/8000, 1/16000

also take consideration i'd find average (mean) ... should 1 of actual shutter speeds collected , not arbitrary number.

edit: usable data mean sort of creative? numbering system can convert to/from performing calculations. thought multiplying 1,000,000 except fractions when divided quite exotic.

edit #2: clarify, i'm using exposuretime instead of shutterspeed because contains photographer friendly values e.g. 1/50. shutterspeed more of approximation (which varies between camera manufacturers) , leads values such 1/49.

you want parse them kind of time-duration object.

a simple way, looking @ data, check wheter " or / occurs, if " parse seconds, / parse fraction of seconds. don't understand else mean. example you'd need specify language--also, there might parser out there already.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -