Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: image opacity/image overlaying?

  • To: mathgroup at
  • Subject: [mg80165] Re: image opacity/image overlaying?
  • From: "Mariusz Jankowski" <mjankowski at>
  • Date: Tue, 14 Aug 2007 06:58:42 -0400 (EDT)
  • Organization: University of Southern Maine
  • References: <f9p5ut$rm2$>

This doesn't use ArrayPlot, but works for 2D image arrays. Given two images,
for example,

img1 = Import[
  ""; ] ;

img2 = Import[
  ""; ] ;

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>,
AV<akvelu at> 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

  • Prev by Date: Re: Intensive numerical calculations
  • Next by Date: Question about memory consumption in my codes by using Mathematica 6, Thanks!
  • Previous by thread: image opacity/image overlaying?
  • Next by thread: Re: Re: image opacity/image overlaying?