• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating an CGAffineTransform From Sample Points
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an CGAffineTransform From Sample Points


  • Subject: Re: Creating an CGAffineTransform From Sample Points
  • From: glenn andreas <email@hidden>
  • Date: Mon, 18 Feb 2008 09:33:09 -0600


On Feb 18, 2008, at 12:54 AM, Quincey Morris wrote:

On Feb 17, 2008, at 20:47, Bridger Maxwell wrote:

Hello, I have a few questions on CGAffineTransform. I would like to
construct one to represent a calibration from x y values from a camera to x
y values on a screen.

[explanation snipped]


All of this assumes that the transformation really is affine (no warping, no variation of the transformation in different parts of the image) and invertible.


This, of course, is the key point, and based on the description from the OP, it probably isn't affine, since affine projections don't do perspective. So if you take a camera looking at a piece of graph paper that is slightly tilted, you're going to need something more powerful than an affine projection.

Fortunately, you can use Core Image's CIPerspectiveTransform which just requires the four control (corner) points, rather than having to calculate the perspective matrix from those four control points.


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next generation of fractal art




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Creating an CGAffineTransform From Sample Points
      • From: Quincey Morris <email@hidden>
References: 
 >Creating an CGAffineTransform From Sample Points (From: "Bridger Maxwell" <email@hidden>)
 >Re: Creating an CGAffineTransform From Sample Points (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: A couple questions relevant to games
  • Next by Date: Re: fresh newbie question
  • Previous by thread: Re: Creating an CGAffineTransform From Sample Points
  • Next by thread: Re: Creating an CGAffineTransform From Sample Points
  • Index(es):
    • Date
    • Thread