[Radiance-general] Excluding zeroed values from averaged luminance

parisa khademagha p.khademagha at gmail.com
Fri Dec 9 14:42:00 PST 2016


Hi Greg,

Thank you so much! I have tried 100 other possibilities but all with if & cond together!!!

Cheers,
Parisa

> On Dec 9, 2016, at 5:27 PM, Greg Ward <gregoryjward at gmail.com> wrote:
> 
> 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 <mailto: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
>> 
>> 
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20161209/5df44b53/attachment.html>


More information about the Radiance-general mailing list