Re: Image processing with ImageCompose
- To: mathgroup at smc.vnet.net
- Subject: [mg103873] Re: Image processing with ImageCompose
- From: David Bailey <dave at removedbailey.co.uk>
- Date: Sat, 10 Oct 2009 07:08:34 -0400 (EDT)
- References: <hahsni$ms$1@smc.vnet.net>
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