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

Home » Public Forums » archive » IsoSurface
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IsoSurface [message #39803 is a reply to message #39727] Thu, 10 June 2004 08:46 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Aleks writes:

> Previously I used MatLab to combine slices of data and construct 3D
> models. My advisor chose to switch to IDL because of its "powerfull"
> features. 81 came from the number of slices I have. I'm not really
> sure what you mean by range of my values?

When you use Shade_Volume you are trying to create
a 3D contour of your data at some "value". If your
data values range from 100 to 200 and you contour
at 81, and look for the values "lower" than the
contour value, you are not likely to see much in
your plot. :-)

So, in the above example, if your data ranges in
value from 100 to 200, setting a contour level of
150 might be reasonable. The contour level should
be set based on the data values in the volume, not
the number of frames in the volume.

One way to see what range of data values you have is
to plot a histogram of the data values in the volume:

IDL> Plot, Histogram(vol)

You might see some likely looking peaks in the
histogram. Just above or below, or perhaps right
in the middle of a peak might be an appropriate
place to choose a contouring value for a 3D contour.

For a quick test to see if your contouring value is
"reasonable" you might pick something between the
minimum and maximum of the data:

IDL> Print, Min(vol), Max(vol)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array indices and lookup tables
Next Topic: Super/sub-script in widget program?

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

Current Time: Fri Nov 28 19:23:59 PST 2025

Total time taken to generate the page: 0.09842 seconds