Results 1 to 3 of 3

Math Help - 4 point interpolation

  1. #1
    Newbie
    Joined
    May 2011
    Posts
    2

    4 point interpolation

    Hello, I hope this post belongs to the right topic.

    I have a problem where i want to calculate a value at a normalized (x,y) position on a square field where values for the four corner points are known. I know this sounds like a problem found anyware so there should be a simple way of doing this.

    Problem:
    Given a square field with corners (0,0)=A (1,0)=B (0,1)=C (1,1)=D, calculate interpolated value at point (x,y) where x={0..1} and y={0..1}

    Solution (brutal force):
    x1=A+(B-A)x
    x2=C+(D-C)x
    y1=A+(C-A)y
    y2=B+(D-B)y
    result = (x1+(x2-x1)x + y1+(y2-y1)y)/2

    Is there a simple way?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by riggs3344 View Post
    Hello, I hope this post belongs to the right topic.

    I have a problem where i want to calculate a value at a normalized (x,y) position on a square field where values for the four corner points are known. I know this sounds like a problem found anyware so there should be a simple way of doing this.

    Problem:
    Given a square field with corners (0,0)=A (1,0)=B (0,1)=C (1,1)=D, calculate interpolated value at point (x,y) where x={0..1} and y={0..1}

    Solution (brutal force):
    x1=A+(B-A)x
    x2=C+(D-C)x
    y1=A+(C-A)y
    y2=B+(D-B)y
    result = (x1+(x2-x1)x + y1+(y2-y1)y)/2

    Is there a simple way?
    Google and then usually wikipedia are your friends:

    Bilinear interpolation - Wikipedia, the free encyclopedia

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    May 2011
    Posts
    2
    Exactly what I where looking for, just didn't know hot to name it. Thanks.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. interpolation
    Posted in the Number Theory Forum
    Replies: 0
    Last Post: November 29th 2010, 12:59 PM
  2. Interpolation
    Posted in the Calculus Forum
    Replies: 1
    Last Post: March 21st 2010, 05:43 AM
  3. Interpolation
    Posted in the Advanced Applied Math Forum
    Replies: 0
    Last Post: February 8th 2010, 03:32 PM
  4. Interpolation
    Posted in the Calculus Forum
    Replies: 2
    Last Post: January 3rd 2010, 08:03 AM
  5. More interpolation
    Posted in the Pre-Calculus Forum
    Replies: 0
    Last Post: October 17th 2009, 09:57 PM

/mathhelpforum @mathhelpforum