[Radiance-general] Image calculations

Lars O. Grobe grobe at gmx.net
Wed Jan 5 03:19:37 PST 2011


Hi!

> Simple question: I need to divide one image with another … pixel by
> pixel, channel by channel. I.e., IM1(x,y,C) / IM2(x,y,C) for all x,y and
> for all channels RGB and have the result ordered as a new image.

Just for completeness:

pcomb -e 'ro=ri(1)/ri(2); go=gi(1)/gi(2); bo=bi(1)/bi(2)' -o image1.hdr 
-o image2.hdr > result.hdr

The -o flags are important to calculate with the original pixel values 
(usually radiance W/m2*sr) without any exposure effects.

Cheers, Lars.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3740 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20110105/1a7777da/attachment.bin>


More information about the Radiance-general mailing list