Sunday, October 3, 2010

MATLAB coders wanted

Trying to create the code for Nearest Neighbor image interpolation. Any help would be greatly appreciated.

For those willing to help here's a lowdown on what the program is supposed to do, plus a background on Nearest Neighbor. given a 2 x 2 pixel picture that looks like this:

a  b
c  d

when enlarged by a magnification of 2 is supposed to look like this

a a b b
a a b b
c c d d
c c d d

The code is supposed to go on different scales, as far as 16 if not larger. I can go as far as to write up the while loops to check the dimensions of the image but the enlarging process and adding the info to the enlarged picture has me stumped. Any help would be great

No comments:

Post a Comment