Belal Abboushi
2017-10-01 06:49:06 UTC
Hi all,
I am putting together a post processing cmd batch file to convert image to
hemispherical, resize, crop, mask, apply vignetting image, etc. The problem
I'm facing is that header of the resultant HDRI header contains some
duplicated lines, I am particularly concerned about view and exposure
lines, as you can see below:
#?RADIANCE
CAPDATE= 2017:09:30 22:49:12
GMT= 2017:10:01 05:49:12
9_1043com.hdr:
CAPDATE= 2017:09:30 22:49:10
GMT= 2017:10:01 05:49:10
maskc.hdr:
ra_bmp -r
9_1043cs.hdr:
CAPDATE= 2017:09:30 22:49:09
GMT= 2017:10:01 05:49:09
9_1043.hdr:
CAPDATE= 2017:09:30 22:49:08
GMT= 2017:10:01 05:49:08
9_1043.hdr:
CAMERA= Canon Canon PowerShot G15 version v.0
hdrgen created HDR image from 'IMG_8062.JPG' 'IMG_8061.JPG' 'IMG_8060.JPG'
'IMG_8059.JPG' 'IMG_8058.JPG' 'IMG_8057.JPG'
Removed lens flare
EXPOSURE=2.057471e-01
VIEW= -vtv -vh 49.053696 -vv 49.053696
CAPDATE= 2017:06:22 10:43:42
PRIMARIES= 0.6400 0.3300 0.3000 0.6000 0.1500 0.0600 0.3127 0.3290
pinterp -vf 9_1043.hdr -vth -x 1200 -y 1200 -ff 9_1043.hdr 1
VIEW= -vth -vp 0 0 0 -vd 0 1 0 -vu 0 0 1 -vh 49.0537 -vv 49.0537 -vo 0 -va
0 -vs 0 -vl 0
EXPOSURE=2.057471e-01
pcompos -x 1126 -y 1126 9_1043.hdr -55 -14
pfilt -1 -e 1.000 -x /1.4075 -y /1.4075
pcomb -e
ro=if(ri(1)-0.5,ri(2),0);go=if(gi(1)-0.5,gi(2),0);bo=if(bi(1)-0.5,bi(2),0)
maskc.hdr 9_1043cs.hdr
G15Vig.hdr:
ra_tiff -r
pcomb -e "ro=ri(1) / ri(2);go=gi(1) / gi(2);bo=bi(1) / bi(2)" -o
9_1043com.hdr G15Vig.hdr
FORMAT=32-bit_rle_rgbe
EXPOSURE=0.342682082
I am eager to hear your input on how to clean it up so it'd run in
Evalglare. Any suggestions are greatly appreciated!
Best,
Belal Abboushi
*Belal K. Abboushi*
Ph.D. Candidate | Department of Architecture
University of Oregon
I am putting together a post processing cmd batch file to convert image to
hemispherical, resize, crop, mask, apply vignetting image, etc. The problem
I'm facing is that header of the resultant HDRI header contains some
duplicated lines, I am particularly concerned about view and exposure
lines, as you can see below:
#?RADIANCE
CAPDATE= 2017:09:30 22:49:12
GMT= 2017:10:01 05:49:12
9_1043com.hdr:
CAPDATE= 2017:09:30 22:49:10
GMT= 2017:10:01 05:49:10
maskc.hdr:
ra_bmp -r
9_1043cs.hdr:
CAPDATE= 2017:09:30 22:49:09
GMT= 2017:10:01 05:49:09
9_1043.hdr:
CAPDATE= 2017:09:30 22:49:08
GMT= 2017:10:01 05:49:08
9_1043.hdr:
CAMERA= Canon Canon PowerShot G15 version v.0
hdrgen created HDR image from 'IMG_8062.JPG' 'IMG_8061.JPG' 'IMG_8060.JPG'
'IMG_8059.JPG' 'IMG_8058.JPG' 'IMG_8057.JPG'
Removed lens flare
EXPOSURE=2.057471e-01
VIEW= -vtv -vh 49.053696 -vv 49.053696
CAPDATE= 2017:06:22 10:43:42
PRIMARIES= 0.6400 0.3300 0.3000 0.6000 0.1500 0.0600 0.3127 0.3290
pinterp -vf 9_1043.hdr -vth -x 1200 -y 1200 -ff 9_1043.hdr 1
VIEW= -vth -vp 0 0 0 -vd 0 1 0 -vu 0 0 1 -vh 49.0537 -vv 49.0537 -vo 0 -va
0 -vs 0 -vl 0
EXPOSURE=2.057471e-01
pcompos -x 1126 -y 1126 9_1043.hdr -55 -14
pfilt -1 -e 1.000 -x /1.4075 -y /1.4075
pcomb -e
ro=if(ri(1)-0.5,ri(2),0);go=if(gi(1)-0.5,gi(2),0);bo=if(bi(1)-0.5,bi(2),0)
maskc.hdr 9_1043cs.hdr
G15Vig.hdr:
ra_tiff -r
pcomb -e "ro=ri(1) / ri(2);go=gi(1) / gi(2);bo=bi(1) / bi(2)" -o
9_1043com.hdr G15Vig.hdr
FORMAT=32-bit_rle_rgbe
EXPOSURE=0.342682082
I am eager to hear your input on how to clean it up so it'd run in
Evalglare. Any suggestions are greatly appreciated!
Best,
Belal Abboushi
*Belal K. Abboushi*
Ph.D. Candidate | Department of Architecture
University of Oregon