HDRI Digest, Vol 39, Issue 1

Thanks Greg,

I have successfully cropped and pfilt'ed my hdr images down into 600 x
600 pixel images with the appropriate VIEW description

The modified header is below:

...................................................................................................

VIEW= -vta -vh 180 -vv 180 -vp 0 0 0 -vd 1 0 0 -vu 0 0 1
#?RADIANCE
CAPDATE= 2011:03:01 15:29:53
GMT= 2011:03:01 23:29:53
<stdin>:
       CAMERA= Canon Canon PowerShot A570 IS version v.0
       VIEW= -vtv -vh 52.456387 -vv 40.558973
       CAPDATE= 2010:10:11 16:06:59
       hdrgen created HDR image from 'IMG_1100.JPG' 'IMG_1099.JPG'
'IMG_1098.JPG' 'IMG_1097.JPG' 'IMG_1096.JPG' 'IMG_1095.JPG'
'IMG_1094.JPG' 'IMG_1093.JPG' 'IMG_1092.JPG' 'IMG_1091.JPG'
       pfilt -1 -x /2 -y /2
       ra_xyze -r -o -u
       PRIMARIES= 0.6400 0.3300 0.2900 0.6000 0.1500 0.0600 0.3333 0.3333
pcompos -x 600 - -75 0
FORMAT=32-bit_rle_rgbe

-Y 600 +X 600

...................................................................................................

The images can be analyzed using the Radiance program 'findglare' with
what look like reasonable results
...................................................................................................

findglare -p output/corrected_201010111605.hdr
VIEW= -vth -vp 0 0 0 -vd 1 0 0 -vu 0 0 1 -vh 180 -vv 180 -vo 0 -va 0 -vs 0
-vl 0
FORMAT=ascii

BEGIN glare source
       0.983158 0.158794 0.090470 0.039193 5077.962407
       0.786589 0.612193 0.080600 0.014087 5621.114152
       0.321372 -0.943305 0.083034 0.009191 3504.607733
       0.390327 0.906667 0.160000 0.028193 7046.145541
       0.755319 -0.622916 0.203640 0.015073 3462.277860
       0.753612 0.589769 0.290244 0.032770 5008.000344
       0.905625 -0.347670 0.242835 0.026667 3517.498954
       0.951442 -0.142012 0.273112 0.024567 3538.742064
       0.950063 0.162100 0.266651 0.040324 4302.979581
       0.910482 0.146667 0.386667 0.019310 3550.061832
END glare source
BEGIN indirect illuminance
       0 633.402385
END indirect illuminance

...........................................................................................................

However, evalglare is still giving me an error message related to the
view not being "-vta"

...........................................................................................................

% evalglare output/corrected_201010111605.hdr
wrong view type! must be vta!!! type = 118 0

...........................................................................................................

One initial guess for why evalglare was not accepting the image was
that "#?RADIANCE" was not at the top of the header, but i've tried
echo'ing a few complete headers from HDR images that evalglare does
work on and get the same view error.

For anyone interested, i've placed the "before" and "after" images
created from the below script online at the following location:

https://gaia.lbl.gov/people/kskonis/share/TEMP/evalglare/

...........................................................................................................

#!/bin/csh -f

# this works on all .hdr images you place in a folder called "input"

foreach image (`ls input | grep .hdr`)

  echo $image
       echo "VIEW= -vta -vh 180 -vv 180 -vp 0 0 0 -vd 1 0 0 -vu 0 0 1" >
output/corrected_{$image}
       pfilt -1 -x /2 -y /2 input/$image | ra_xyze -r -o -u | pcompos -x
600 - -85 0 >> output/corrected_{$image}

       end
...........................................................................................................

best,

Kyle

Thanks Greg,

I have successfully cropped and pfilt'ed my hdr images down into 600 x
600 pixel images with the appropriate VIEW description

The modified header is below:

...................................................................................................

VIEW= -vta -vh 180 -vv 180 -vp 0 0 0 -vd 1 0 0 -vu 0 0 1
#?RADIANCE
CAPDATE= 2011:03:01 15:29:53
GMT= 2011:03:01 23:29:53
<stdin>:
  CAMERA= Canon Canon PowerShot A570 IS version v.0
  VIEW= -vtv -vh 52.456387 -vv 40.558973
  CAPDATE= 2010:10:11 16:06:59
  hdrgen created HDR image from 'IMG_1100.JPG' 'IMG_1099.JPG'
'IMG_1098.JPG' 'IMG_1097.JPG' 'IMG_1096.JPG' 'IMG_1095.JPG'
'IMG_1094.JPG' 'IMG_1093.JPG' 'IMG_1092.JPG' 'IMG_1091.JPG'
  pfilt -1 -x /2 -y /2
  ra_xyze -r -o -u
  PRIMARIES= 0.6400 0.3300 0.2900 0.6000 0.1500 0.0600 0.3333 0.3333
pcompos -x 600 - -75 0
FORMAT=32-bit_rle_rgbe

-Y 600 +X 600

...................................................................................................

The images can be analyzed using the Radiance program 'findglare' with
what look like reasonable results
...................................................................................................

findglare -p output/corrected_201010111605.hdr
VIEW= -vth -vp 0 0 0 -vd 1 0 0 -vu 0 0 1 -vh 180 -vv 180 -vo 0 -va 0 -vs 0 -vl 0
FORMAT=ascii

BEGIN glare source
  0.983158 0.158794 0.090470 0.039193 5077.962407
  0.786589 0.612193 0.080600 0.014087 5621.114152
  0.321372 -0.943305 0.083034 0.009191 3504.607733
  0.390327 0.906667 0.160000 0.028193 7046.145541
  0.755319 -0.622916 0.203640 0.015073 3462.277860
  0.753612 0.589769 0.290244 0.032770 5008.000344
  0.905625 -0.347670 0.242835 0.026667 3517.498954
  0.951442 -0.142012 0.273112 0.024567 3538.742064
  0.950063 0.162100 0.266651 0.040324 4302.979581
  0.910482 0.146667 0.386667 0.019310 3550.061832
END glare source
BEGIN indirect illuminance
  0 633.402385
END indirect illuminance

...........................................................................................................

However, evalglare is still giving me an error message related to the
view not being "-vta"

...........................................................................................................

% evalglare output/corrected_201010111605.hdr
wrong view type! must be vta!!! type = 118 0

...........................................................................................................

One initial guess for why evalglare was not accepting the image was
that "#?RADIANCE" was not at the top of the header, but i've tried
echo'ing a few complete headers from HDR images that evalglare does
work on and get the same view error.

For anyone interested, i've placed the "before" and "after" images
created from the below script online at the following location:

https://gaia.lbl.gov/people/kskonis/share/TEMP/evalglare/

...........................................................................................................

#!/bin/csh -f

# this works on all .hdr images you place in a folder called "input"

foreach image (`ls input | grep .hdr`)

  echo $image
    
    echo "VIEW= -vta -vh 180 -vv 180 -vp 0 0 0 -vd 1 0 0 -vu 0 0 1" >
output/corrected_{$image}
    pfilt -1 -x /2 -y /2 input/$image | ra_xyze -r -o -u | pcompos -x
600 - -85 0 >> output/corrected_{$image}
    
  end
...........................................................................................................

best,

Kyle