We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Interpolating 2D array within Processing
Page Index Toggle Pages: 1
Interpolating 2D array within Processing (Read 719 times)
Interpolating 2D array within Processing
Mar 25th, 2010, 10:27am
 
Hi, I'm new to processing and i'm trying to do a simple linear interpolation of a 2d array 8x16 how can i do this?
Re: Interpolating 2D array within Processing
Reply #1 - Mar 25th, 2010, 1:00pm
 
hmm..can you explain a bit more thoroughly?
Re: Interpolating 2D array within Processing
Reply #2 - Mar 26th, 2010, 6:37pm
 
Ok so basically i've got a custom sensor array that im getting data from into processing via serial. i store this sensor data in a 2d array and render this array as such

http ://i114.photobucket.com/albums/n247/lynx_z3/img.jpg

basically i want to increase the resolution of this gathered data to do this i need to interpolate the values in the 2d array. My thought was due to the processing power required to implement interpolation i'd go with linear interpolation not the best method but the least intensive in terms of CPU usage.

so basically where i stand is i need to interpolate this 2d array say as a test case from a 8 x16 array to 16 x 32 array basically an interpolation subfactor of 0.5.
Page Index Toggle Pages: 1