script to evaluate glare in multiple images
hi all
this might be the most basic thing but can anyone help me, I need to know if the following script is right fur applying evalglare to multiple HDR images? if so, please point me the ‘obvious’ mistake..
I have this:
for t in {8..12}; do evalglare -d -vf view/vh1.vf imgs/back_$t.hdr > gout/back_$t.txt; done
Im applying to few images to simplify the test, I checked the route by trying with a single image…but for some reason is not doing the loop, the error says: Can't open imgs/back_8.hdr Can't open imgs/back_9.hdr Can't open imgs/back_10.hdr Can't open imgs/back_11.hdr Can't open imgs/back_12.hdr
I'll appreciate your help
Chantal
At first glance, it looks like you either have a search path issue, or the HDR images are corrupted. Need more info to be more helpful, though; looks like a csh script but it would be good to know for sure. What's the script really look like? Is there a shebang line? How are you calling the thing?
It's actually bash. seems to me that the path to the image is the problem. Make sure that you are running the script from the directory that contains the imgs directory and that you don't have any cd commands before the loop.
Also, does your file name have leading zeros? Usually image sequences have leading zeros like this: back_0008.hdr
HI all, Thank you for your reply (and sorry for the late one from my side)...
The problem was with the preceeding zeroes (thank you for that). I modified the script this way:
Strangely the first 8 images report a nul file (not zero in the results, just the file has zero bytes). But anyway after several testings with further images this doesn't seem to be a serious issue.
Btw... May I ask if there is any way to get the results in a single output-file, without the need of extracting data from original files?
Thank you again for your help!
Ch.