[Radiance-general] Average value of a Radiance image

Giovanni Betti gbetti at fosterandpartners.com
Tue Jun 16 11:14:09 PDT 2009


Thanks both to Greg and Marija :)

-----Original Message-----
From: radiance-general-bounces at radiance-online.org
[mailto:radiance-general-bounces at radiance-online.org] On Behalf Of Greg
Ward
Sent: 16 June 2009 16:07
To: Radiance general discussion
Subject: Re: [Radiance-general] Average value of a Radiance image

Hi Giovanni,

There are a number of ways to do it, but I prefer using pvalue.  For  
a color (RGB) average, you can use:

	pvalue -h -H -df test.hdr | total -if3 -m

For grayscale average:

	pvalue -b -h -H -df test.hdr | total -if1 -m

For original units (watts/sr/m^2) add a -o to either of the pvalue  
commands above.

-Greg

> From: "Giovanni Betti" <gbetti at fosterandpartners.com>
> Date: June 16, 2009 7:33:25 AM PDT
>
> Hi All,
>
> Can anybody help me with a simple problem?
> How do you evaluate the average value of a radiance (*.pic or *.hdr)
> image?
> Many thanks,
>
> giovanni

_______________________________________________
Radiance-general mailing list
Radiance-general at radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-general



More information about the Radiance-general mailing list