help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nearest neighbor interpolation.


From: Ismael Núñez-Riboni
Subject: Re: Nearest neighbor interpolation.
Date: Fri, 20 Apr 2012 11:22:54 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

I can suggest to reduce the two for-loops to one to make it faster:

Forget the single for-loop, it's even easier than that, you only need:

b(1:2:end,1:2:end) = a;

Period; no for-loops, no interpolation, life it's sometimes easier than it looks like...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]