I appreciate your comment Axel!!
I slightly modified my code and it is working now.
However, I have one more question!
My HDR process is like below.
(Please, let me know if there is something wrong in my script.)
=====================================================
Cropping the original HDR image to match the size with the vignetting filter
file
ra_xyze -r -o -u Original.hdr | pcompos -x 4368 -y 2912 - -408 -272 >
Resized_for_Vignetting.hdr
Applying the vignetting filter to the cropped HDRI
pcomb -e 'ro=ri(1) / ri(2);go=gi(1) / gi(2);bo=bi(1) / bi(2)'
Resized_for_Vignetting.hdr Vignetting_Filter.hdr > Vignetting_Corrected.hdr
Resizing the HDRI for glare analysis
pfilt -x 1200 -y 800 Vignetting_Corrected.hdr >
Vignetting_Corrected_resized.hdr
Cropping the HDRI for glare analysis
ra_xyze -r -o -u Vignetting_Corrected_resized.hdr | pcompos -x 800 -y 800 -
-200 0 > Cropped.hdr
Creating the cleaning filter
ra_tiff -r Cleaning_filter.tif Cleaning_filter.hdr
Applying the cleaning filter on the resized HDRI
pcomb Cropped.hdr -s -1000 Cleaning_filter.hdr > Final.hdr
Running the Evalglare analysis
evalglare -vta -vh 180 -vv 180 Final.hdr
=====================================================
After the process above, The header file is like below.
#?RADIANCE
CAPDATE= 2014:02:26 22:58:34
GMT= 2014:02:27 04:58:34
/Users/jonghoonkim/Desktop/Sample HDRI/Crop800_800.hdr:
CAPDATE= 2014:02:26 22:51:52
GMT= 2014:02:27 04:51:52
<stdin>:
CAPDATE= 2014:02:26 22:16:03
GMT= 2014:02:27 04:16:03
/Users/jonghoonkim/Desktop/Sample
HDRI/Big_for_Vignetting.hdr:
CAPDATE= 2014:02:26 22:09:29
GMT= 2014:02:27 04:09:29
<stdin>:
CAMERA= Canon Canon EOS 60D version v.0
Photosphere created HDR image from
'Jong_-2014-0111-1104-14.jpg' 'Jong_-2014-0111-1104-17.jpg'
'Jong_-2014-0111-1104-20.jpg' 'Jong_-2014-0111-1104-22.jpg'
'Jong_-2014-0111-1104-25.jpg' 'Jong_-2014-0111-1104-28.jpg'
'Jong_-2014-0111-1104-31.jpg' 'Jong_-2014-0111-1104-34.jpg'
'Jong_-2014-0111-1104-37.jpg' 'Jong_-2014-0111-1104-40.jpg'
'Jong_-2014-0111-1104-44.jpg' 'Jong_-2014-0111-1104-48.jpg'
'Jong_-2014-0111-1104-53.jpg'
VIEW= -vtv -vh 132.979172 -vv 113.747666
CAPDATE= 2014:01:11 12:05:53
ra_xyze -r -o -u
"/Users/jonghoonkim/Desktop/Sample HDRI/Big.hdr"
PRIMARIES= 0.6400 0.3300 0.2900 0.6000
0.1500 0.0600 0.3333 0.3333
pcompos -x 4368 -y 2912 - -408 -272
/Users/jonghoonkim/Desktop/Sample
HDRI/Sigma_f56FishVigL.hdr:
# Output from HDRShop
EXPOSURE= 1.0000000000000
pcomb -e "ro=ri(1) / ri(2);go=gi(1) / gi(2);bo=bi(1) /
bi(2)" "/Users/jonghoonkim/Desktop/Sample HDRI/Big_for_Vignetting.hdr"
"/Users/jonghoonkim/Desktop/Sample HDRI/Sigma_f56FishVigL.hdr"
pfilt -x 1200 -y 800
ra_xyze -r -o -u "/Users/jonghoonkim/Desktop/Sample
HDRI/Resize.hdr"
PRIMARIES= 0.6400 0.3300 0.2900 0.6000 0.1500 0.0600
0.3333 0.3333
pcompos -x 800 -y 800 - -200 0
/Users/jonghoonkim/Desktop/Sample HDRI/Cleaning_filter.hdr:
ra_tiff -r
CAPDATE= 2014:02:25 16:15:37
pcomb "/Users/jonghoonkim/Desktop/Sample HDRI/Crop800_800.hdr" -s -1000
"/Users/jonghoonkim/Desktop/Sample HDRI/Cleaning_filter.hdr"
FORMAT=32-bit_rle_rgbe
=====================================================
The header file is very long like above after the whole process.
I could run evalglare with the final.hdr. ( It looks OK until now.)
Is the header file is OK for futhur HDRI analysis?
Are there any potential error source in the head?
If I need to modify the head, can you explain a little bit more on vim and
Radiance’s info?
Have a good day!
Best regards,
Jonghoon Kim
On Feb 26, 2014, at 2:00 PM, [email protected] wrote:
> Send HDRI mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.radiance-online.org/mailman/listinfo/hdri
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of HDRI digest..."
>
>
> Today's Topics:
>
> 1. Crop HDRIs in radiance and evalglare (Jonghoon Kim)
> 2. Re: Crop HDRIs in radiance and evalglare (Axel Jacobs)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 26 Feb 2014 09:33:10 -0600
> From: Jonghoon Kim <[email protected]>
> To: [email protected]
> Subject: [HDRI] Crop HDRIs in radiance and evalglare
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> Dear list,
>
> I am trying to glare analysis via HDR images captured by a canon DSLR Camera
> and sigma fish eye lens.
>
> The procedure that I use was
>
> 1. Taking 13 images via gphoto2 +Crontab
>
> 2. Creating HDR images in HDRgen
>
> 3. Resize
> pfilt -x 1433 -y 955 Big.hdr > resize.hdr
>
> 4.Crop & cleaning mask
> ra_xyze -r -o -u resize.hdr | pcompos -x 800 -y 800 - -315 -78 > crop.hdr |
> pcomb -s -1000 output_masked2.hdr
>
> 5. Evalglare analysis
> echo "VIEW= -vta -vh 180 -vv 180 -vp 0 0 0 -vd 1 0 0 -vu 0 0 1" >
> output_masked2.hdr
> evalglare output_masked2.hdr
>
> The problem is that Evalglare reports errors after the crop process.
>
> error: no valid view specified
>
> (There was no evalglare errors when I test it with the resized image.)
>
> I has checked the luminance values of the HDR in photosphere and it looks OK!
>
> Do I need to use another crop command for evalglare processing?
>
> Please, let me know if you have any ideas.
>
> Best regards,
> Jonghoon Kim
> Ph.D. student
> Texas A&M University
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.radiance-online.org/pipermail/hdri/attachments/20140226/c839693a/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 26 Feb 2014 16:25:28 +0000
> From: Axel Jacobs <[email protected]>
> To: High Dynamic Range Imaging <[email protected]>
> Subject: Re: [HDRI] Crop HDRIs in radiance and evalglare
> Message-ID:
> <ca+dqh61y+uoksazp1me9frpgydxklk8zjh6vpmscaba-9fh...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Both pcompos and pcomb mess with the HDR header. Also, what you are doing
> here:
>
> echo "VIEW= -vta -vh 180 -vv 180 -vp 0 0 0 -vd 1 0 0 -vu 0 0 1" >
> output_masked2.hdr
>
> is overwrite HDR image output_masked2.hdr with just the view string.
> You need to edit this image in a text editor and put a full VIEW= line
> back in. If you're happy using vim, then you could try Radiance's
> vinfo.
>
> Regards
>
> Axel
>
>
> On 26 February 2014 15:33, Jonghoon Kim <[email protected]> wrote:
>> Dear list,
>>
>> I am trying to glare analysis via HDR images captured by a canon DSLR Camera
>> and sigma fish eye lens.
>>
>> The procedure that I use was
>>
>> 1. Taking 13 images via gphoto2 +Crontab
>>
>> 2. Creating HDR images in HDRgen
>>
>> 3. Resize
>> pfilt -x 1433 -y 955 Big.hdr > resize.hdr
>>
>> 4.Crop & cleaning mask
>> ra_xyze -r -o -u resize.hdr | pcompos -x 800 -y 800 - -315 -78 > crop.hdr |
>> pcomb -s -1000 output_masked2.hdr
>>
>> 5. Evalglare analysis
>> echo "VIEW= -vta -vh 180 -vv 180 -vp 0 0 0 -vd 1 0 0 -vu 0 0 1" >
>> output_masked2.hdr
>> evalglare output_masked2.hdr
>>
>> The problem is that Evalglare reports errors after the crop process.
>>
>> error: no valid view specified
>>
>> (There was no evalglare errors when I test it with the resized image.)
>>
>> I has checked the luminance values of the HDR in photosphere and it looks
>> OK!
>>
>> Do I need to use another crop command for evalglare processing?
>>
>> Please, let me know if you have any ideas.
>>
>> Best regards,
>> Jonghoon Kim
>> Ph.D. student
>> Texas A&M University
>>
>>
>>
>>
>> _______________________________________________
>> HDRI mailing list
>> [email protected]
>> http://www.radiance-online.org/mailman/listinfo/hdri
>>
>
>
>
> ------------------------------
>
> _______________________________________________
> HDRI mailing list
> [email protected]
> http://www.radiance-online.org/mailman/listinfo/hdri
>
>
> End of HDRI Digest, Vol 68, Issue 1
> ***********************************
_______________________________________________
HDRI mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/hdri