comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Performance of a loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Performance of a loop [message #27359] Wed, 17 October 2001 23:43 Go to previous message
azM is currently offline  azM
Messages: 8
Registered: October 2001
Junior Member
How can i speed up this procedure? It steps through a matrix of either
64x64x64, 128x128x128 or in the worst case 256x256x256.

<==BEGIN IDL==>
FOR i = init, limit, 1 DO BEGIN
FOR j = init, limit, 1 DO BEGIN
FOR k = init, limit, 1 DO BEGIN
X=img_a(i:kernel_dim+i,j:kernel_dim+j,k:kernel_dim+k)
Y=img_b(i:kernel_dim+i,j:kernel_dim+j,k:kernel_dim+k)
sign_prob_map=TM_TEST(X,Y)
spm_plot_statistic(i,j,k)= sign_prob_map(0)
spm_plot_significance(i,j,k)= sign_prob_map(1)
ENDFOR
ENDFOR
ENDFOR
<== END IDL ==>

Thanks in advance,

Bob
(B.C.Hamans<<at>>student.tue.nl)
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Matching, Aligning, Affine Transform
Next Topic: ENVI regustration: poly/RST to shift/rotation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:43:55 PDT 2025

Total time taken to generate the page: 0.00538 seconds