Re: Re: image opacity/image overlaying?
- To: mathgroup at smc.vnet.net
- Subject: [mg80210] Re: [mg80165] Re: image opacity/image overlaying?
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Wed, 15 Aug 2007 04:08:29 -0400 (EDT)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <f9p5ut$rm2$1@smc.vnet.net> <200708141058.GAA08636@smc.vnet.net>
- Reply-to: murray at math.umass.edu
And one can show a nice "fade" transitional effect with: Manipulate[ Show[{ Graphics[{Opacity[1-c],img1[[1]]}], Graphics[{Opacity[c],img2[[1]]}] }],{c,0.01,1} ] Mariusz Jankowski wrote: > This doesn't use ArrayPlot, but works for 2D image arrays. Given two images, > for example, > > > img1 = Import[ > "http://www.ee.usm.maine.edu/courses/ele489/data/cameraman.tif" ] ; > > img2 = Import[ > "http://www.ee.usm.maine.edu/courses/ele489/data/face.tif" ] ; > > > then this gives the desired result > > > Show[{img1, Graphics[{Opacity[0.5], img2[[1]]}] }] > > > > Bye, Mariusz > > > > > > > > > >>>> On 8/13/2007 at 4:49 AM, in message <f9p5ut$rm2$1 at smc.vnet.net>, > AV<akvelu at gmail.com> wrote: >> Is there a way of overlaying a partially transparent 2D image array on >> another 2D image array using ArrayPlot or ListDensityPlot? I am >> currently using a workaround by making an array of transparent points >> and showing this on top of a ListDensityPlot graphics but I wanted to >> check if there was a better way since this is very slow. >> >> AV > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
- References:
- Re: image opacity/image overlaying?
- From: "Mariusz Jankowski" <mjankowski@usm.maine.edu>
- Re: image opacity/image overlaying?