LV Lightvalues Exposure Calculator
Abstract
Android application Lightvalues LV for calculating aperture values Av corresponding to light values by shifting the time value Tv=1/s or arithmetic ISO speed value S in steps k according to the common classification.
Full text
Schrausser, D. G. (2025). LV Lightvalues Exposure Calculator. https://doi.org/10.5281/zenodo.17037428 1 LV Lightvalues Exposure Calculator Dietmar G. Schrausser orcid.org/0000-0002-4924-8280 Correspondence: [email protected] Karl-Franzens University, Graz, Austria Overview Android application Lightvalues LV 1 for calculating aperture values π΄π£ corresponding to light values 2 by shifting the time value ππ£ = π β1 or arithmetic πΌππ speed value π in steps π according to the common classification (s. Fig. 1), where ππ£πβπ = ππ£πβ
2π, ππ+π = ππβ
β2π, ππ£π+π =ππ£π 2π, ππβπ =ππ β2π and π΄π£(ππ£π)= π΄π£(ππ£π+π)β
β2π=π΄π£(ππ£πβπ) β2π, π΄π£(ππ)= π΄π£(ππβπ)β
β2π=π΄π£(ππ+π) β2π. Therefore π΄π£ is calculated from ππ£ or π as π΄π£ππ£ = π΄π£ππ£0β
πππ£, π΄π£π= π΄π£π0β
ππ with πππ£ = 21 2β
log2ππ£0 ππ£ = e1 2β
log(ππ£0) ππ£ , ππ= 21 2β
log2π π0= e1 2β
log π π0. The shutter speed is set in the range between ππ£ = 32000 and 2 hours, ππ£ = 0.000138, aperture ranges from π΄π£ = 0.5 to π΄π£ =152 and speed π is set to range between πΌππ 0.4 and πΌππ 102400. On aperture, shutter speed and exposure see e.g. Roberts (1995), Beaver (2018), Bernacki (2020) and Simon et al. (2022). Logarithmic speed πΒ° (s. Allbright, 1991) is transformed from arithmetic speed π by πΒ° = 10 β
log10(π)+ 1 = 10 β
log(π) log(10)+ 1, π = 10πΒ°β1 10 . 1 https://github.com/Schrausser/LV 2 Light level for incident or reflected light on a logarithmic scale. Creative Commons Attribution 4.0 International (1) (2) (3) (4) (5) (6) (7) (8) (9)
Schrausser, D. G. (2025). LV Lightvalues Exposure Calculator. https://doi.org/10.5281/zenodo.17037428 2 The exposure value πΈπ£ is calculated from ππ£ and π΄π£, where πΈπ£ = log2 π΄π£2 ππ£β1 =log(ππ£ β
Av2) log(2),ππ£ =2πΈπ£ π΄π£2,π΄π£ =β2πΈπ£ β
ππ£ ππ£ . The total luminous flux or illuminance πΈπ in lux ππ₯, where ππ₯ =ππ π2 results from πΈπ£ and π by πΈπ=250 β
2πΈπ£ π. For logarithmic functions in general see e.g. Marsden & Weinstein (1985), Howie (2001) and Sobot (2021). Presets for time and aperture combinations at πΌππ 100/21Β° (8) are given (s. Tab. 1), with aperture values π΄π£ are rounded to one decimal place. Custom time-aperture-ISO combinations for exposure values πΈπ£ (10) or illuminance πΈπ (11) can be achieved by shifting π΄π£ itself (s. Fig. 1). Table 1. Exposure presets for πv, π΄π£ and πΈπ£ (10) at πΌππ 100/21Β° by condition cnd. cnd ππ£ π΄π£ πΈπ£ Sun 125 11 14 Cloud 125 8 13 Overcast 60 5.6 11 Dawn 15 4 8 Indoors 15 2.8 7 In addition, direct calculations (5) of aperture π΄π£ from shutter speed ππ£ (6) and π (7) can be performed (c.f. Schrausser, 2025). This should be used when shutter speeds outside the usual steps (1) (2) are present or when only one shutter speed is available, as in the case of the socalled mechanical emergency shutter speed (s. Tab. 2). Table 2. π΄π£ for ππ£ (5) (6) at πΌππ 100/21Β° and πΌππ 400/27Β° with πΈπ£ (10) by condition cnd. cnd ππ£ πΈπ£ 250 100 60 45 ISO 100/21Β° Sun 7.8 12.3 15.9 18.3 13.9 Cloud 5.7 9.0 11.6 13.3 13.0 Overcast 2.8 4.3 5.6 6.5 10.9 Dawn 1.0 1.6 2.0 2.3 7.9 Indoors 0.7 1.1 1.4 1.6 6.9 ISO 400/27Β° Sun 15.6 24.6 32.0 36.7 15.9 Cloud 11.4 18.0 23.2 26.6 15.0 Overcast 5.6 8.6 11.2 13.0 12.9 Dawn 2.0 3.1 4.0 4.6 9.9 Indoors 1.4 2.2 2.8 3.2 8.9 (10) (11)
Schrausser, D. G. (2025). LV Lightvalues Exposure Calculator. https://doi.org/10.5281/zenodo.17037428 3 Further manuals or introductory literature on photography are given by e.g. Hedgecoe (1977, 2009) and Jacobson et al. (2000), see also Kenneth Mees (1931), Cannon & Hunt (1981), Hitchcock (1989), Current et al. (2000), Friedman & Ross (2003) or Pavlidis (2022). Figure 1. Screenshots from LV Application. Source ! /////////////////////////////////////////////////////////////////////////////////// ! // LV Lightvalues ! // Exposure calculator ! // by Dietmar G. Schrausser Β© 2025 ! // _name$=βLVβ _ver$=β3.8.2β CONSOLE.TITLE _name$ INCLUDE strg.inc INCLUDE lv.inc GOSUB values sw=-3 % // color switch // insw=1 % // input switch // tv=10 av=18 av1=18 iso=18:iso$=β100β ! m1: IF sw=1 :r=255:g=255:b=255:ENDIF IF sw=0 :r=0 :g=0 :b=0 :ENDIF IF sw=-1:r=80 :g=30 :b=30 :ENDIF IF sw=-2:r=30 :g=80 :b=30 :ENDIF IF sw=-3:r=80 :g=90 :b=180:ENDIF GR.OPEN 255,r,g,b,0,1 GR.SCREEN sx,sy dy=sy/3/4 txz0=sx/10 txz1=sx/2.5 txz2=sx/3.5 GR.TEXT.BOLD 1 IF insw=1 THEN GOSUB inpt ! DO ! insw=1 GOSUB col ! % // AV shift // GR.BOUNDED.TOUCH swavp,0,sy/3,sx/3,sy*2/3 IF swavp=1 IF av>1:av=av-1:rav=av:rtv=tv:ENDIF GOSUB sub1
Schrausser, D. G. (2025). LV Lightvalues Exposure Calculator. https://doi.org/10.5281/zenodo.17037428 4 ENDIF GR.BOUNDED.TOUCH swavm,sx*2/3,sy/3,sx,sy*2/3 IF swavm=1 IF av<36:av=av+1:rav=av:rtv=tv:ENDIF GOSUB sub1 ENDIF ! % // menue // GR.BOUNDED.TOUCH swin,sx/3,sy/3,sx*2/3,sy*2/3 IF swin=1 GOSUB inpt:GR.CLS ENDIF ! % // TV shift // GR.BOUNDED.TOUCH swtvp,0,0,sx/3,sy/3 IF swtvp=1 IF tv>1:tv=tv-1:av=av-2:ENDIF GOSUB sub1 ENDIF GR.BOUNDED.TOUCH swtvm,sx*2/3,0,sx,sy/3 IF swtvm=1 IF tv<31:tv=tv+1:av=av+2:ENDIF GOSUB sub1 ENDIF ! % // iso shift // GR.BOUNDED.TOUCH swisop,sx*2/3,sy*2/3,sx,sy IF swisop=1 IF iso<39:iso=iso+1 av=av+1 % // // GOSUB sub1 ENDIF ENDIF GR.BOUNDED.TOUCH swisom,0,sy*2/3,sx/3,sy IF swisom=1 IF iso>1:iso=iso-1 av=av-1 GOSUB sub1 ENDIF ENDIF ! % // text TV // iso$=iso$[iso] IF sw>-1 IF tv=rtv THEN GR.COLOR 255,255/2,0,0,1 ENDIF IF tv<1 THEN GR.TEXT.DRAW tx,sx/2,sy/3-dy,Tv$[1] IF tv>31 THEN GR.TEXT.DRAW tx,sx/2,sy/3-dy,Tv$[29] IF tv>0 & tv<32 GR.TEXT.SIZE txz0 GR.TEXT.ALIGN 1 GR.TEXT.DRAW tx,0,dy,βTvβ IF tv<17 GR.TEXT.DRAW tx,0,sy*3/12,β 1/β ENDIF GR.TEXT.SIZE txz2 GR.TEXT.ALIGN 2 GR.TEXT.DRAW tx,sx/2,sy/3-dy,Tv$[tv] ENDIF GOSUB col ! % // text AV // IF sw>-1 IF rav=av THEN GR.COLOR 255,255/2,0,0,1 ENDIF IF av<1 THEN GR.TEXT.DRAW tx,sx/2,sy*2/3-dy,Av$[1] IF av>36 THEN GR.TEXT.DRAW tx,sx/2,sy*2/3-dy,Av$[36] IF av>0 & av<37 av1=av GR.TEXT.SIZE txz0 GR.TEXT.ALIGN 1 GR.TEXT.DRAW tx,0,sy/2+dy/2,βAvβ GR.TEXT.SIZE txz1 GR.TEXT.ALIGN 2 GR.TEXT.DRAW tx,sx/2,sy*2/3-dy,Av$[av1] ENDIF GOSUB col ! % // text iso // GR.TEXT.SIZE txz0 GR.TEXT.ALIGN 1 GR.TEXT.DRAW tx,0,sy-dy/3,βISOβ GR.TEXT.SIZE txz2 GR.TEXT.ALIGN 2 GR.TEXT.DRAW tx,sx/2,sy-dy,iso$
Schrausser, D. G. (2025). LV Lightvalues Exposure Calculator. https://doi.org/10.5281/zenodo.17037428 5 ! % // Color switch // GR.BOUNDED.TOUCH t1,sx/3,sy*2/3,sx*2/3,sy IF t1 insw=0 sw=sw+1:IF sw=2 THEN sw=-3 GR.CLOSE:GOTO m1 ENDIF ! GR.TEXT.SIZE txz0 GR.TEXT.ALIGN 3 IF dlg<>6 GR.TEXT.DRAW tx,sx,sy/20,lv$[dlg] ELSE IF tv<31 & av1<35 & tv>1 & av>1 & iso>1 & iso<39 GOSUB v0: GOSUB EV ENDIF GR.TEXT.DRAW tx,sx,sy/20,ev$+β Evβ GOSUB E_V GR.TEXT.SIZE sx/15 GR.TEXT.DRAW tx,sx,sy-sy/100,e_v$+β lxβ ENDIF GOSUB ln GR.RENDER ! UNTIL 0 ! ONERROR: ONBACKKEY: GOSUB fin END ! ! // sub //////////////////////////////////////////////////////////////////////////// ! values: ARRAY.LOAD tv$[], β+β, β32000β,β16000β,β8000β,β4000β,β2000β,β1000β,β500β,β250β,β125β,β60β,β30β,β15β,β8β,β4β, β2β,β1β+i$,β2β+i$,β4β+i$,β8β+i$,β15β+i$,β30β+i$,β1ββ,β2ββ,β4ββ,β8ββ,β15ββ,β30ββ,β1hβ, β2hβ,β-β ARRAY.LOAD av$[], β- β,β0.5β,β0.6β,β0.7β,β0.8β,β1.0β,β1.2β,β1.4β,β1.7β,β2.0β,β2.4β,β2.8β,β3.4β,β4.0β,β4.8β ,β5.6β,β6.7β,β8.0β,β9.5β,β11β,β13.5β,β16β,β19β,β22β,β27β,β32β,β38β,β44β,β54β,β64β,β76 β,β88β,β108β,β128β,β152β,β+β ARRAY.LOAD iso$[], β- β,β0.4β,β0.6β,β0.8β,β1.1β,β1.5β,β2.2β,β3β,β4.4β,β6β,β8.8β,β12.5β,β18β,β25β,β35β,β50β, β71β,β100β,β141β,β200β,β283β,β400β,β566β,β800β,β1131β,β1600β,β2263β,β3200β,β4526β,β64 00β,β9051β,β12800β,β18102β,β25600β,β36204β,β51200β,β72408β,β102400β,β+β RETURN ! col: IF sw=1 THEN GR.COLOR 255,30 ,30 ,30 ,1 IF sw=0 THEN GR.COLOR 255,180,180,180,1 IF sw=-1 THEN GR.COLOR 255,255,30 ,30 ,1 IF sw=-2 THEN GR.COLOR 255,30 ,255,30 ,1 IF sw=-3 THEN GR.COLOR 255,240,240,240,1 RETURN ! ln: GR.LINE l1,0,sy*1/3,sx,sy*1/3 GR.LINE l2,0,sy*2/3,sx,sy*2/3 GR.TEXT.ALIGN 1 GR.TEXT.DRAW tx,0,sy*1/6,β -β GR.TEXT.DRAW tx,0,sy*5/6,β -β GR.TEXT.ALIGN 3 GR.TEXT.DRAW tx,sx,sy*1/6,β+ β GR.TEXT.DRAW tx,sx,sy*5/6,β+ β RETURN ! sub1: PAUSE 100:GR.CLS RETURN ! inpt: ARRAY.LOAD lv$[],m1$+β Sunβ,m2$+β Cloudβ,m3$+β Overcastβ,m4$+β Dawnβ,m5$+β Indoorsβ,m6$+β EVβ,m7$+β Calculateβ,_ex$+β Exitβ DIALOG.SELECT dlg, lv$[],_name$+β β+_ver$+β β ISO@100 β¦β IF dlg=5:tv=13:av=12:iso=18:ENDIF IF dlg=4:tv=13:av=14:iso=18:ENDIF IF dlg=3:tv=11:av=16:iso=18:ENDIF IF dlg=2:tv=10:av=18:iso=18:ENDIF
Schrausser, D. G. (2025). LV Lightvalues Exposure Calculator. https://doi.org/10.5281/zenodo.17037428 6 IF dlg=1:tv=10:av=20:iso=18:ENDIF IF dlg=7 IF tv<31 & av1<35 & tv>1 & av>1 & iso>1 & iso<39 GOSUB v0 GOSUB calc ENDIF ENDIF IF dlg=8:GOSUB fin:END:ENDIF rtv=tv rav=av RETURN ! calc: GOSUB EV:GOSUB E_V ARRAY.LOAD calc$[],βTv= 1/β+tv0$+β (β+tv1$+β)sβ,βAv= β+av0$,βISO= β+iso0$+β/β+din$+βΒ°β,βEv: β+ev$,e_v$+β lxβ,βOkβ DIALOG.SELECT dlg2, calc$[],m7$+β Calculateβ¦β IF dlg2=1 INPUT βTv=β¦β,tv01,VAL(tv0$) GOSUB AvTv GOTO calc ENDIF IF dlg2=2 INPUT "Av=...",av01,VAL(av0$) av0$=STR$(av01) tv01=VAL(tv0$) GOSUB AvTv GOTO calc ENDIF IF dlg2=3 INPUT βISO=β¦β,iso01,VAL(iso0$) GOSUB Aviso GOTO calc ENDIF IF dlg2=6 THEN GOTO inpt RETURN ! v0: % // conversions // IF tv<17 % // Tv < 1sec // tv0$=Tv$[tv] tv1$=STR$(ROUND(1/VAL(tv0$),5)) ENDIF IF tv>16 % // Tv >= 1sec // SW.BEGIN tv SW.CASE 17:tv0$=β1β :tv1$=β1β :SW.BREAK SW.CASE 18:tv0$=β0.5β :tv1$=β2β :SW.BREAK SW.CASE 19:tv0$=β0.25β :tv1$=β4β :SW.BREAK SW.CASE 20:tv0$=β0.125β :tv1$=β8β :SW.BREAK SW.CASE 21:tv0$=β0.0667β :tv1$=β15β :SW.BREAK SW.CASE 22:tv0$=β0.0333β :tv1$=β30β :SW.BREAK SW.CASE 23:tv0$=β0.0167β :tv1$=β60β :SW.BREAK SW.CASE 24:tv0$=β0.0083β :tv1$=β120β :SW.BREAK SW.CASE 25:tv0$=β0.0042β :tv1$=β240β :SW.BREAK SW.CASE 26:tv0$=β0.0021β :tv1$=β480β :SW.BREAK SW.CASE 27:tv0$=β0.0011β :tv1$=β900β :SW.BREAK SW.CASE 28:tv0$=β0.00056β:tv1$=β1800β:SW.BREAK SW.CASE 29:tv0$=β0.00028β:tv1$=β3600β:SW.BREAK SW.CASE 30:tv0$=β0.00014β:tv1$=β7200β:SW.BREAK SW.END ENDIF av0$=Av$[av1] iso0$=iso$ din$=INT$(INT(10*LOG10(VAL(iso0$))+1)) % // DIN // RETURN ! AvTv: % // calc Av Tv // av0$=STR$(VAL(av0$)*EXP((0.5*LOG(VAL(tv0$)/tv01))) ) av0$=STR$(ROUND(VAL(av0$),2)) tv0$=STR$(tv01) tv1$=STR$(ROUND(1/tv01,5)) RETURN ! Aviso: % // calc Av iso // av0$=STR$(VAL(av0$)*EXP((0.5*LOG(iso01/VAL(iso0$)))) ) av0$=STR$(ROUND(VAL(av0$),2)) iso0$=STR$(iso01) din$=STR$(ROUND(10*LOG10(iso01)+1,1)) RETURN !
Schrausser, D. G. (2025). LV Lightvalues Exposure Calculator. https://doi.org/10.5281/zenodo.17037428 7 EV: % // calc Ev // ev$=STR$(ROUND(1/LOG(2)*LOG((VAL(av0$))^2/(VAL(tv0$))^-1),2)) RETURN ! E_V: % // calc E_V // e_v$=STR$(ROUND(250*(2^VAL(ev$)/VAL(iso0$)),2)) RETURN ! fin: PRINT _name$+β Lightvalues β+_ver$ PRINT βCopyright β+_cr$+β 2025 by Dietmar Gerald Schrausserβ PRINT "https://github.com/Schrausser/LV" PRINT "DOI:10.5281/zenodo.16502602" RETURN ! // END // ! // References Allbright, G. S. (1991). Emulsion Speed Rating Systems. The Journal of Photographic Science 39 (2): 95β99. https://doi.org/ 10.1080/00223638.1991.11737126 Beaver, J. (2018). Shutter Speed and Aperture. In The Physics and Art of Photography, 2:3-1 to 3-6. 2053-2571. Morgan & Claypool Publishers. https://doi.org/10.1088/20 53-2571/aae504ch3 Bernacki, J. (2020). Automatic Exposure Algorithms for Digital Photography. Multimedia Tools and Applications 79 (19): 12751β76. https://doi.org/10.1007/s11042-01908318-1 Cannon, T. M., & Hunt, B. R. (1981). Image Processing by Computer. Scientific American 245 (4): 214β25. http://www.jstor. org/stable/24964586 Current, I., Compton, J. C., & Zakia, R. D. (2000). Basic Photographic Materials and Processes. Amsterdam: Elsevier Science; Technology. https://books.google.com /books?id=maKozwEACAAJ Friedman, A., & Ross, D. S. (2003). Mathematical Models in Photographic Science. Berlin, Heidelberg: Springer. https://doi.org/10. 1007/978-3-642-55755-2 Hedgecoe, J. (1977). The Photographerβs Handbook: A Complete Reference Manual of Techniques, Procedures, Equipment and Style. 1st ed. New York: Knopf. https://books.google.com/books?id=eyXr AAAAMAAJ Hedgecoe, J. (2009). New Manual of Photography. London: Dorling Kindersley Limited. https://books.google.com/books?id=9N4 C0HMzZFMC Hitchcock, M. (1989). Field Photography; a Guide to Basic Equipment. Journal of Museum Ethnography, no. 1: 4β6. http://www. jstor.org/stable/40793474 Howie, J. M. (2001). The Logarithmic and Exponential Functions. In Real Analysis, 165β79. London: Springer. https://doi. org/10.1007/978-1-4471-0341-7_6 Jacobson, R., Ray, S., Attridge, G. G., & Axford, N. (2000). Manual of Photography. 9th ed. Oxfordshire, UK: Routledge. https:// doi.org/10.4324/9780080510965 Kenneth Mees, C. E. (1931). The Science of Photography. Sigma Xi Quarterly 19 (1): 1β19. http://www.jstor.org/stable/27824446 Marsden, J., & Weinstein, A. (1985). Exponentials and Logarithms. In Calculus i, 307β35. New York, NY: Springer. https://doi. org/10.1007/978-1-4612-5024-1_9 Pavlidis, G. (2022). Foundations of Photography: A Treatise on the Technical Aspects of Digital Photography. Cham: Springer International Publishing. https://doi.org/ 10.1007/978-3-031-06252-0 Roberts, G. (1995). Exposure. In Mastering Photography, 76β87. London: Macmillan Education UK. https://doi.org/10.1007/ 978-1-349-13506-6_5 Schrausser, D. G. (2025). HP_Prime_MATH: Manual. Zenodo. June 2025. https://doi.org/10. 5281/zenodo.15713317 Simon, G., Vakulya, G., & RΓ‘tosi, M. (2022). The Way to Modern Shutter Speed Measurement Methods: A Historical Overview. Sensors 22 (5): 1871. https://doi.org/10.3390/ s22051871 Sobot, R. (2021). Exponential and Logarithmic Functions. In Engineering Mathematics by Example, 51β66. Cham: Springer International Publishing. https://doi.org/10. 1007/978-3-030-79545-0_4