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

Home » Public Forums » archive » Can i avoid the loop,help me speed up,thanks
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Can i avoid the loop,help me speed up,thanks [message #61892] Mon, 04 August 2008 06:29 Go to previous message
Rongchang Chen is currently offline  Rongchang Chen
Messages: 12
Registered: August 2008
Junior Member
I wrote a procedure to create sinograms from projections in
tomography,the main part of procedure please see below.
For large size and number projections,it's very very slow.
Can i avoid the loop(one is OK) to speed up,or another way to create
sinograms?
Thank you very much!!


************
n_sinogra:number of sinogram
n_projection:number of projection
files_projection:a string vector contain Directory and name of
projection
files_sino:a string vector contain Directory and name of sinogram


for jj = 0,n_sinogram-1 do begin
print,'now creating',jj+1,'th sinogram'
sino = fltarr(sizepro[0],n_projection)

for ii=0, n_projection-1 do begin
image = float(read_image(files_projection[ii]))
some processing of image
sino(*,ii) = image(*,jj)
endfor

write_tiff,files_sino(jj),sino,/short,/float
endfor
*****************
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: neural networks
Next Topic: Re: RESOLVE_ALL problem

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

Current Time: Wed Oct 08 17:19:05 PDT 2025

Total time taken to generate the page: 0.00657 seconds