MathGroup Archive 2011

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

Search the Archive

Re: newbie Map, Dynamic, etc

  • To: mathgroup at
  • Subject: [mg120418] Re: newbie Map, Dynamic, etc
  • From: Heike Gramberg <heike.gramberg at>
  • Date: Thu, 21 Jul 2011 21:08:09 -0400 (EDT)
  • References: <>

Suppose plots is your list of imported images, then you could do something like

pts = Table[{0, 0}, {Length[plots]}]

Manipulate[LocatorPane[Dynamic[pts[[k]]], plots[[k]]],
 {{k, 1, "Index"}, Range[Length[plots]], ControlType -> Slider,
  Appearance -> "Labeled"}]

The k-th entry in pts will correspond to the coordinates of  the locator on the k-th
image. You can even see a live update of the coordinates  while you manipulate the
locators by doing something like

Dynamic[pts // TableForm]


On 21 Jul 2011, at 10:47, Gareth Edwards wrote:

> Hi,
> Still playing around with Mathematica as a newbie and wrestling with the
> 'different'  way one has to think about things as opposed to other
> languages. I think (hopefully) that an informative example for me would be a
> solution (or at least some hints) to the following:
> Say I have an image sequence (mySequence_0000.jpg, etc.) I'd like to create
> a viewer with a slider that scrubs through the images. That I can do.
> What I'd also like is an array of points (just one point per image, and
> initialized to {0,0} say ), such that on each image I can move a locator
> around and thereby modify the corresponding stored point in the array. In
> other words, store the location of a point (as manipulated by me) against
> each image.
> My gut tells me that this is trivial to the average Mathematica user- the
> trouble is I remain well below average right now!
> Any help appreciated.
> Best,
> Gareth
> --
> Dr. Gareth Edwards
> Director
> Mobile: +44 7813 534111
> Office: +44 1925 606430
> Fax: +44 161 884 0095
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> It may not be disclosed, copied, forwarded, used or relied upon by any
> person other than the intended addressee. If you believe that you have
> received the e-mail and its attachment(s) in error, you must not take any
> action based on them, nor must you copy or show them to anyone. If you have
> received this email in error please notify postmaster at

  • Prev by Date: Re: Inverse of Interpolating Function?
  • Next by Date: Computer-Based Math Summit
  • Previous by thread: newbie Map, Dynamic, etc
  • Next by thread: Re: newbie Map, Dynamic, etc