MathGroup Archive 2011

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

Search the Archive

Re: newbie Map, Dynamic, etc

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120419] Re: newbie Map, Dynamic, etc
  • From: Gareth Edwards <gareth.edwards at cubicmotion.com>
  • Date: Thu, 21 Jul 2011 21:08:19 -0400 (EDT)
  • References: <201107210947.FAA06542@smc.vnet.net> <8A9117AD-B871-4686-9CCB-FF12EC28921A@gmail.com>

Thanks Heike, that's extremely helpful to understand the way to build these
things!

Best,

Gareth

On 21 July 2011 14:58, Heike Gramberg <heike.gramberg at gmail.com> wrote:

> 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]
>
> Heike
>
> 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
> > www.cubicmotion.com
> >
> > 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 cubicmotion.com.
> >
> >
>
>


-- 
Dr. Gareth Edwards
Director
www.cubicmotion.com

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 cubicmotion.com.



  • Prev by Date: Re: Inverse of Interpolating Function?
  • Next by Date: Re: mlink SASImport
  • Previous by thread: Re: newbie Map, Dynamic, etc
  • Next by thread: How Can I Eliminate Line Wrapping When Using the Row Function