Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: 2d linear Interpolation

2005-03-11 by peterburdine

--- In lpc2000@yahoogroups.com, "Rolf Bredemeier" <rolf_tt@y...> wrote:
> Hi,
> 
> i'm searching for an example for 2d linear interpolation.
> The data is in an array unsigned char [10][400].
> 
> Here is my "worksheet", may be, it help's to explain for i looking on:
> http://www.nur-solutions.de/tmp/2dinterpol.gif
> 
> There is the way to solve  the prob. for x-value 55 and y-value 800
= 59,35
> 
> I need no floting point, unsigned char is only what i need.
> 
> Best regards, Rolf

One possible solution is to use DSP.  Supersample the data (insert
0's) until you have the proper resolution then run it though a low
pass (interpolation) filter and pull out the value you need.  Might be
more compuationally intensive though.  

I think regression would be a bit of an over kill.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.