Z=0:asdfif 0<>get_histo_range Z Z then print Z , get_histo_range Z ZZ=Z+1goto "asdf"
Havent seen any info about this other places, so I did some tests with this script.
@title AutoHDR 1.0rem The step between images@param i EV Step@default i 1@param j EV Step (x/3)@default j 0rem The wait before the first picture is taken@param t Initial Delay (s)@default t 1rem Feel free to expiriment with the threshold values, I have just found these to work OKrem Lower highlight threshold = More dark pictures (more highlighs probably covered)rem Higher highlight threshold = Less dark pictures (more highlighs probably peaking)@param b Highlight threshold (29-1023)@default b 150rem Lower dark threshold = Less bright pictures (more darks probably peaking)rem Higher dark threshold = More bright pictures (more darks probably covered)@param d Dark threshold (29-1023)@default d 100rem Prints the script to a file, so you can see what exposures you have afterwards.print_screen 1rem Making sure the variables are within rangeif i<0 then i=0if j<0 then j=0if j=0 then if j=i then i=1if e<1 then e=1if p<1 then p=10if b<29 then b=29if b>1023 then b=0if d<29 then d=29if d>1023 then d=1023rem Enables the histogramshot_histo_enable 1rem Calculates the step between frames as decided by the useri=j*32+i*96rem Disable flashf=get_flash_modeF=2gosub "set_flash_mode"rem Get the shutter speedrem Print 0 EV because e=0 (see subroutine for details)gosub "EVprint"rem Delay before first shotsleep t*1000rem Take the EV=0 shotshootrem Get the shutter speed just usedget_tv96 grem Lock the AF so it doesnt have to focus laterset_aflock 1H=g:highsrem Decrease exposure time by step (i)H=H+iset_tv96_direct Hrem Display exposure (difference from origrinal exposure)e=g-Hgosub "EVprint"rem Takes the pictureshootrem Check the threshold on the histogramh=get_histo_range b 1023rem If too many pixels are too bright, it goes to "highs" (take a darker picture)if h<>0 then goto "highs"print "Darks"D=g:darksrem Increase exposure time by step (i)D=D-iset_tv96_direct Drem Display exposure (difference from origrinal exposure)e=g-Dgosub "EVprint"rem Takes the pictureshootrem Check the threshold on the histogramh=get_histo_range 0 drem If too many pixels are too dark, it goes to "darks" (take a brighter picture)if h<>0 then goto "darks"rem Unlock AF, since we are done taking photosset_aflock 0rem Set flash back to initial stateF=fgosub "set_flash_mode"rem Print interesting information to screene=H-Dprint "Total pics:"print e/i+1print "Total exposure range:"gosub "EVprint"endrem The only way I could figure out to do it, because I wanted it to be DIGIC II/III universalrem set_flash_mode could be really usefull as a function :):set_flash_modew=0rem Reads the current flash mode to jj=get_flash_moderem Checks if this is the same as prop 16 (DIGIC II), if it is, then it sets J<>j and J>-1if j=get_prop 16 then if j-1<0 then J=1 else J=j-1if j=get_prop 16 then w=1rem If j=prop 16 then it changes prop 16 to a new value (J)if j=get_prop 16 then set_prop 16 Jrem If the flash mode has changed it is prop 16 (DIGIC II), else it sets prop 16 back (dont wanna mess with unknown props)if J=get_flash_mode then J=16 else if w=1 then set_prop 16 jrem Sets the flash mode to F on both DIGIC II and IIIif J=16 then set_prop 16 F else set_prop 143 Freturnrem Made this subroutine to print the EV number in a readable formatrem This can probably be done simpler... just like the rest of my script..:EVprintw=0e=e/32rem if e is negative, it makes it positive and sets w=1if e<0 then w=1if e<0 then e=e*-1E=e/3E=E*3e=e-EE=E/3if w=1 then E=E*-1if e=0 then print E,"EV"if e=1 then print E,"1/3 EV"if e=2 then print E,"2/3 EV"return
Started by sneakernet
« 1 2 ... 28 29 »
Started by Microfunguy
« 1 2 3 »
General Discussion and Assistance
Started by outslider
Started by jmac698
« 1 2 3 »
Started by Davo