From: Hemangi Wadekar on
Hi,



Would someone please help me to find out how to use ImageCompose[] to compare the signals on two images.

I would like to adjust the opacity of the top image so that the signals from bottom image also show up.

If I have one image red and other green, then would the matched points should show as orange?



Or is there any other way in Mathematica to get the results?

Any pointers will be appreciated.



Thanks,

Hemangi.

From: Kurt TeKolste on

Doesn't the second variant of ImageCompose do this for you?

"ImageCompose[image,{overlay,\[Alpha]}]
gives the result of alpha-blending overlay into image using blending
fraction \[Alpha]."
?

ekt

On Wed, 07 Oct 2009 07:00 -0400, "Hemangi Wadekar"
<hemangi29(a)hotmail.com> wrote:
> Hi,
>
>
>
> Would someone please help me to find out how to use ImageCompose[] to
> compare the signals on two images.
>
> I would like to adjust the opacity of the top image so that the signals
> from bottom image also show up.
>
> If I have one image red and other green, then would the matched points
> should show as orange?
>
>
>
> Or is there any other way in Mathematica to get the results?
>
> Any pointers will be appreciated.
>
>
>
> Thanks,
>
> Hemangi.
>
Regards,
Kurt Tekolste


From: David Bailey on
Hemangi Wadekar wrote:
> Hi,
>
>
>
> Would someone please help me to find out how to use ImageCompose[] to compare the signals on two images.
>
> I would like to adjust the opacity of the top image so that the signals from bottom image also show up.
>
> If I have one image red and other green, then would the matched points should show as orange?
>
>
>
> Or is there any other way in Mathematica to get the results?
>
> Any pointers will be appreciated.
>
>
>
> Thanks,
>
> Hemangi.
>
If you are starting with arrays of data (as opposed to images), by far
the best way is to use ListPlot to do the job directly:

data1 = {1, 2, 3, 4};

data2 = {1.1, 2.1, 3.3, 4.4};

ListPlot[{data1, data2}, PlotJoined -> True]

Note also, that if you generate several graphics objects, you can
combine them with Show, which will automatically adjust match the
coordinate systems.

Alternatively, if you are starting with images from somewhere outside
Mathmeatica, Argument 5 of ImageCompose (see the help on this function)
lets you merge the pixels of the two images in any way desired.

David Bailey
http://www.dbaileyconsultancy.co.uk

From: Patrick Scheibe on
Hi,

what you want is ImageAdd:

img1 = Import["http://sipi.usc.edu/database/misc/4.2.04.tiff"];
img2 = Import["http://sipi.usc.edu/database/misc/4.2.02.tiff"];
ImageAdjust(a)ImageAdd[
ImageApply[#*{1, 0, 0} &, img1], ImageApply[#*{0, 1, 0} &, img2]]

Cheers
Patrick

On Wed, 2009-10-07 at 07:00 -0400, Hemangi Wadekar wrote:
> Hi,
>
>
>
> Would someone please help me to find out how to use ImageCompose[] to compare the signals on two images.
>
> I would like to adjust the opacity of the top image so that the signals from bottom image also show up.
>
> If I have one image red and other green, then would the matched points should show as orange?
>
>
>
> Or is there any other way in Mathematica to get the results?
>
> Any pointers will be appreciated.
>
>
>
> Thanks,
>
> Hemangi.
>