Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19240

Re: AffineTransform interpolation

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: AffineTransform interpolation
Date 2012-10-10 18:29 -0400
Organization A noiseless patient Spider
Message-ID <k54st1$kv2$1@dont-email.me> (permalink)
References <4ee42124-f57e-4a7e-9d60-d0d1559f0625@googlegroups.com>

Show all headers | View raw


On 10/10/2012 4:12 PM, bob smith wrote:
> Is it generally possible to interpolate between two AffineTransform objects?
>
> For instance, you may want to get the object that is midway between two AffineTransforms.

     It's certainly possible to generate a transformation matrix
that is a weighted sum of two others:

	[Mavg] = r * [Ma] + (1-r) * [Mb]

     Alternatively, you could find a "geometric mean" as a matrix
whose square is the product of the two transformations:

	[Mavg] * [Mavg] = [Ma] * [Mb]

(Note that the "matrix square root" is not unique.  I don't know
how you'd decide which of many candidate root matrices to use, nor
how you might extend the idea to "weighted geometric means.")

     Whether either of these satisfies your notion of "interpolate"
is something only you can determine.

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

AffineTransform interpolation bob smith <bob@coolfone.comze.com> - 2012-10-10 13:12 -0700
  Re: AffineTransform interpolation Roedy Green <see_website@mindprod.com.invalid> - 2012-10-10 13:23 -0700
  Re: AffineTransform interpolation Knute Johnson <nospam@knutejohnson.com> - 2012-10-10 13:46 -0700
  Re: AffineTransform interpolation Jeff Higgins <jeff@invalid.invalid> - 2012-10-10 17:31 -0400
  Re: AffineTransform interpolation Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-10-10 18:29 -0400
  Re: AffineTransform interpolation Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2012-10-10 16:55 -0700
    Re: AffineTransform interpolation Lew <lewbloch@gmail.com> - 2012-10-10 17:02 -0700
  Re: AffineTransform interpolation Knute Johnson <nospam@knutejohnson.com> - 2012-10-10 19:44 -0700
    Re: AffineTransform interpolation Gene Wirchenko <genew@ocis.net> - 2012-10-10 19:47 -0700
    Re: AffineTransform interpolation Arne Vajhøj <arne@vajhoej.dk> - 2012-10-10 22:55 -0400
      Re: AffineTransform interpolation Knute Johnson <nospam@knutejohnson.com> - 2012-10-11 08:23 -0700
        Re: AffineTransform interpolation "Aaron W. Hsu" <arcfide@sacrideo.us> - 2012-10-11 14:00 -0400
        Re: AffineTransform interpolation Arne Vajhøj <arne@vajhoej.dk> - 2012-10-11 18:02 -0400
          Re: AffineTransform interpolation Martin Gregorie <martin@address-in-sig.invalid> - 2012-10-12 00:17 +0000
            Re: AffineTransform interpolation Gene Wirchenko <genew@ocis.net> - 2012-10-11 20:03 -0700
            Re: AffineTransform interpolation Arved Sandstrom <asandstrom2@eastlink.ca> - 2012-10-17 20:01 -0300
    Re: AffineTransform interpolation markspace <-@.> - 2012-10-10 20:21 -0700

csiph-web