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

Home » Public Forums » archive » Maximum Intensity without FOR Loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Maximum Intensity without FOR Loop [message #39404] Tue, 11 May 2004 12:13
stef is currently offline  stef
Messages: 6
Registered: April 2004
Junior Member
Hi there
a lot of posts talk about the necessity to avoid FOR loops ('if you
use for loops, make sure a lot of stuff is happening in there...').
However, I can't seem to find a better & working solution for the
following code fragment:

FOR i=0,x_resolution-1 DO BEGIN
FOR j=0,y_resolution-1 DO BEGIN
reformat_data[i,j,k]=MAX(data[i,j,lower_limit:upper_limit])
ENDFOR
ENDFOR

Background: data is a image stack (MRI 3D Data), we would like to find
the MIP (Maximum Intesity Projection) over a certain number of images.
The currrent solution is too slow, and a better solution highly
appreciated!
Algorithm-Freaks? Anyone?

Thanks for your help,
Stefan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Alternative [XY]ticknames on colorbar
Next Topic: Re: Maximum Intensity without FOR Loop

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

Current Time: Wed Oct 08 14:55:54 PDT 2025

Total time taken to generate the page: 0.00458 seconds