Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > IDL > Subscription of...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 134 of 228
Post > Topic >>

Subscription of array (the *-problem)

by Laurens <mr.gum@[EMAIL PROTECTED] > May 18, 2006 at 10:41 AM

Hi all,

I'm currently optimizing all code of our PET-analysing program in IDL. 
One part of it is the following statement which turned out to use quite 
some time:
-------------------------
pTemp = (*pCurScan)->GetTimeFrame(i+1)
If( Ptr_Valid(pTemp) EQ 0 ) Then Continue

p = (*pTemp)->GetPixelData()
If( Ptr_Valid(p) EQ 0 ) Then Continue

PD[*,*,*,i] = (*p) * Fact
If( Ptr_Valid(p) ) Then Ptr_Free, p
-------------------------

Now it's the PD[*,*,*,i] = statement of which i'm concerned; it uses 
asterixs on the left side of the operator and David Fanning's site told 
me that's not very elegant :).
Now, the solution his site gives is - as far as I can see (haven been 
IDL-programmer for what...just a few months now) - only usable for 
two-dimensional arrays? Well I'm working with images where I have 
multiple dimensions (x,y,plane,frame).

Is there someone wise in here who could give me a hint about how to 
optimize this bit of code?

Thnx in advance!

Laurens
 




 1 Posts in Topic:
Subscription of array (the *-problem)
Laurens <mr.gum@[EMAIL  2006-05-18 10:41:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:22:07 CDT 2008.