Re: image opacity/image overlaying?
- To: mathgroup at smc.vnet.net
- Subject: [mg80377] Re: image opacity/image overlaying?
- From: AV <akvelu at gmail.com>
- Date: Mon, 20 Aug 2007 03:41:58 -0400 (EDT)
- References: <f9p5ut$rm2$1@smc.vnet.net><200708141058.GAA08636@smc.vnet.net>
Thanks for the suggestion. It was helpful and does give the effect i
was looking for.
AV
On Aug 15, 3:09 am, Murray Eisenberg <mur... at math.umass.edu> wrote:
> 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$rm... at smc.vnet.net>,
> > AV<akv... 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 mur... 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?