help-octave
[Top][All Lists]
Advanced

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

Re: Vectorizing a summation


From: rdelgado
Subject: Re: Vectorizing a summation
Date: Tue, 29 Jan 2013 07:33:02 -0800 (PST)

Hi,

What I am trying to vectorize is a definition of distance between images. X
and Y are MxN images, that are converted to MxN vectors. Then there is
another definition: |Pi-Pj| = sqrt( (k-k')^2 + (l-l')^2 ) that is, the
distance between pixels in position (k, l) and (k', l') from a MxN image.
The final calculation is:

Distance^2 = Sum (from i, j=1...MxN) [ exp(-|Pi-Pj|) * (Xi-Yi) * (Xj-Yj) ]

As you can see, I am a little confused of the definition.

Is it more clear now?

Thanks!



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Vectorizing-a-summation-tp4649235p4649242.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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