help-octave
[Top][All Lists]
Advanced

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

Nearest neighbor interpolation.


From: rikydzee
Subject: Nearest neighbor interpolation.
Date: Fri, 20 Apr 2012 00:40:53 -0700 (PDT)

Hy there, i need some help. I have a matrix obtained from a picture, let's
say that my matrix is [1 2 3 ; 4 5 6 ; 7 8 9] and i need to transform this
matrix into [ 1 0 2 0 3; 0 0 0 0 0 ; 4 0 5 0 6 ; 0 0 0 0 0; 7 0 8 0 9 ]. I
managed to do that making another matrix filled with zeros and put pixel by
pixel from first matrix in the second one. A matrix from a picture si 1200 *
1600 px so that's not verry eficient. Can enyone tell me how to do that
using nearest neighbor interpolation?

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Nearest-neighbor-interpolation-tp4573139p4573139.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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