[Radiance-general] Getting number of pixels for fisheye view

Lars O. Grobe akilog at nus.edu.sg
Wed Jan 28 05:03:00 PST 2009


Hi Greg!
> If you just want a pixel count, you can use:
>
>     pcomb -e 'lo=if(S(1)-1e-30,1,0)' input.pic | pvalue -h -H -pG -df 
> | total -if
Hm, thank You for this, now I am trying to figure out how it works. So 
you set the brightness to 1 if S(1) is greater then the very low 
treshold, else set it to 0, and sum up the pixel values (which are 
either 1 or 0, thus resulting in the n of pixels > 0)? This is very 
similar to what I did with grep, removing all values that have zero 
luminance, and counting the lines than. I was just not sure if it is 
really safe to rely on that pixels with zero luminance must be out of 
the view... But most probably they are, if I do not have a perfect 
absorber in my scene.

CU Lars.



More information about the Radiance-general mailing list