[Radiance-general] Excluding zeroed values from averaged luminance

Greg Ward gregoryjward at gmail.com
Fri Dec 9 08:27:46 PST 2016


Hi Parisa,

Your command should be:

	pvalue –o –d –h –b –H masked.hdr | rcalc –e ’cond=$1-5;$1=$1’ | total –m

You had an extra 'if' in there, which was concatenated with the "cond" variable to turn it into "ifcond", which rcalc ignored.  The variable needs to be "cond" for it to work.  This will include all values greater than 5.0 in the average.  You may wish to adjust this value downwards if you don't want to miss small details.

Best,
-Greg

> From: parisa khademagha <p.khademagha at gmail.com>
> Date: December 9, 2016 7:59:01 AM PST
> 
> Hi Everyone, 
> 
> 
> 
> I have a masked HDR picture generated by combining the original HDR with a mask one. I want to calculate average luminance value of the masked HDR picture without taking zeroed values into account. I am using ‘pvalue –o –d –h –b –H masked.hdr | rcalc –e if’cond=$1-5;$1=$1’| total –m’. But the ‘if condition’ is not working. Your help is very much appreciated. 
> 
> 
> 
> Cheers,
> 
> Parisa
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20161209/962989f2/attachment.html>


More information about the Radiance-general mailing list