comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Image overlapping
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Image overlapping [message #55762] Fri, 07 September 2007 01:54
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Suppose several images represent the distributions of different
chemical compounds. I want to show this in one image with overlapping
distributions. For now I do it like this (pseudocode, see below):

http://users.telenet.be/wox/files/Overlap

distribution1.bmp
distribution2.bmp
distribution3.bmp
--> overlap.bmp

However, this doesn't look very nice. I was actually looking at
something like alpha blending, but then for more then two images. Any
ideas? Remark: the distributions are just 2D arrays (i.e. no RGB)




PseudoCode:

1. binImage1=Image1 gt threshold1
binImage2=Image2 gt threshold2
...

2. binImage=BinImage1 or BinImage2 or ...
multImage=BinImage1+BinImage2+...

3. R=BinImage1*R1+BinImage2*R2+...
G=BinImage1*G1+BinImage2*G2+...
B=BinImage1*B1+BinImage2*B2+...

4. R/=binImage*multImage
G/=binImage*multImage
B/=binImage*multImage

5. Plot RGB image:
tvscl,[[[R]],[[G]],[[B]]],true=3
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bug fix for MPFITFUN (and MPFIT)
Next Topic: Re: C/C++ integration with IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:17:30 PDT 2025

Total time taken to generate the page: 0.00552 seconds