changing header in images for evalglare

Hello All,

I want to use evalglare to evaluate glare in radiance images. I generated
images by three phase method, unfortunately header of those images does not
include view information, which I think that evalglare looks for
explicitly.
I have tried to change the image header just in text editor but it did not
work and demage the image. I would like to ask how to change the header, I
know that it may be trivial but I did spend some time on it already and did
not find how to do it yet.

Thank you for all advices.
David

Use:

  getinfo < orig.hdr > modified.hdr
  # modify "modified.hdr" using favorite text editor, keeping final empty line (and no others)
  getinfo - < orig.hdr >> modified.hdr

If you're just adding a view line to the header, you could use:

  echo "VIEW= -vta -vh 180 -vv 180" > modified.hdr
  cat orig.hdr >> modified.hdr

The latter method messes up the header slightly, but should still work.

-Greg

···

From: David Appelfeld <[email protected]>
Date: December 9, 2011 3:28:10 PM PST

Hello All,

I want to use evalglare to evaluate glare in radiance images. I generated images by three phase method, unfortunately header of those images does not include view information, which I think that evalglare looks for explicitly.
I have tried to change the image header just in text editor but it did not work and demage the image. I would like to ask how to change the header, I know that it may be trivial but I did spend some time on it already and did not find how to do it yet.

Thank you for all advices.
David

Thank you Greg, it is working.

Is there way how to include the view information in the header directly,
instead of manipulating header for each picture?

Best
David

···

On 9 December 2011 15:39, Greg Ward <[email protected]> wrote:

Use:

       getinfo < orig.hdr > modified.hdr
       # modify "modified.hdr" using favorite text editor, keeping final
empty line (and no others)
       getinfo - < orig.hdr >> modified.hdr

If you're just adding a view line to the header, you could use:

       echo "VIEW= -vta -vh 180 -vv 180" > modified.hdr
       cat orig.hdr >> modified.hdr

The latter method messes up the header slightly, but should still work.

-Greg

> From: David Appelfeld <[email protected]>
> Date: December 9, 2011 3:28:10 PM PST
>
> Hello All,
>
> I want to use evalglare to evaluate glare in radiance images. I
generated images by three phase method, unfortunately header of those
images does not include view information, which I think that evalglare
looks for explicitly.
> I have tried to change the image header just in text editor but it did
not work and demage the image. I would like to ask how to change the
header, I know that it may be trivial but I did spend some time on it
already and did not find how to do it yet.
>
> Thank you for all advices.
> David

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi David,

Similar to rtrace, on which it is based, rtcontrib has no notion of what a picture is. The output from it is consequently lacking information you would get out of rpict or rvu for example. There is no easy fix to this, other than scripting something to post-process the output as I suppose you are doing.

Cheers,
-Greg

···

From: David Appelfeld <[email protected]>
Date: December 9, 2011 4:03:43 PM PST

Thank you Greg, it is working.

Is there way how to include the view information in the header directly, instead of manipulating header for each picture?

Best
David

On 9 December 2011 15:39, Greg Ward <[email protected]> wrote:
Use:

       getinfo < orig.hdr > modified.hdr
       # modify "modified.hdr" using favorite text editor, keeping final empty line (and no others)
       getinfo - < orig.hdr >> modified.hdr

If you're just adding a view line to the header, you could use:

       echo "VIEW= -vta -vh 180 -vv 180" > modified.hdr
       cat orig.hdr >> modified.hdr

The latter method messes up the header slightly, but should still work.

-Greg

> From: David Appelfeld <[email protected]>
> Date: December 9, 2011 3:28:10 PM PST
>
> Hello All,
>
> I want to use evalglare to evaluate glare in radiance images. I generated images by three phase method, unfortunately header of those images does not include view information, which I think that evalglare looks for explicitly.
> I have tried to change the image header just in text editor but it did not work and demage the image. I would like to ask how to change the header, I know that it may be trivial but I did spend some time on it already and did not find how to do it yet.
>
> Thank you for all advices.
> David

Hi Greg,
thank you for explanation, it is clear now.
Best,
David

···

On 9 December 2011 16:12, Greg Ward <[email protected]> wrote:

Hi David,

Similar to rtrace, on which it is based, rtcontrib has no notion of what a
picture is. The output from it is consequently lacking information you
would get out of rpict or rvu for example. There is no easy fix to this,
other than scripting something to post-process the output as I suppose you
are doing.

Cheers,
-Greg

*From: *David Appelfeld <[email protected]>

*Date: *December 9, 2011 4:03:43 PM PST

*
*

Thank you Greg, it is working.

Is there way how to include the view information in the header directly,
instead of manipulating header for each picture?

Best
David

On 9 December 2011 15:39, Greg Ward <[email protected]> wrote:

Use:

       getinfo < orig.hdr > modified.hdr
       # modify "modified.hdr" using favorite text editor, keeping final
empty line (and no others)
       getinfo - < orig.hdr >> modified.hdr

If you're just adding a view line to the header, you could use:

       echo "VIEW= -vta -vh 180 -vv 180" > modified.hdr
       cat orig.hdr >> modified.hdr

The latter method messes up the header slightly, but should still work.

-Greg

> From: David Appelfeld <[email protected]>
> Date: December 9, 2011 3:28:10 PM PST
>
> Hello All,
>
> I want to use evalglare to evaluate glare in radiance images. I
generated images by three phase method, unfortunately header of those
images does not include view information, which I think that evalglare
looks for explicitly.
> I have tried to change the image header just in text editor but it did
not work and demage the image. I would like to ask how to change the
header, I know that it may be trivial but I did spend some time on it
already and did not find how to do it yet.
>
> Thank you for all advices.
> David

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general