Home »
Public Forums »
archive »
Programming style
| Programming style [message #11744] |
Fri, 15 May 1998 00:00 |
pford
Messages: 33 Registered: September 1996
|
Member |
|
|
I have a general style/algorithm question.
I want to plot in a 3-D array an ellipsoid within an in ellipsoid where the
voxels between the boundaries are non-zero and else where zero.
The general function is (x/a)^2 + (y/b)^2 + (z/c)^2 = 1.0
I have already done this using for loops and conditional statements but it
occurred to me that there may be some IDL matrix-boolean logic combination
that could accomplish this in a faster and more 'elegant' fashion.
I am now open for suggestions?
Thanks in advance.
Patrick Ford, MD
Department of Radiology
Baylor College of Medicine
pford@bcm.tmc.edu
|
|
|
|
Current Time: Fri Nov 28 09:42:41 PST 2025
Total time taken to generate the page: 0.01079 seconds