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

Home » Public Forums » archive » Re: volume measure
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
Re: volume measure [message #12771] Thu, 03 September 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Ferranti Wong (f.s.l.wong@mds.qmw.ac.uk) writes:

> How can one measure the volume of an object once it has been rendered
> above a threshold.

Well, a "rendered" object has no volume, although you can
perhaps talk about its "area". But you probably didn't mean
that. :-)

Presuming you know the voxel volume (the dimensions of
a single element in your 3D space), you can find the
total volume of a thresholded object like this:

goodVoxels = Where(object GT someCriteria, count)
IF count GE 0 THEN $
totalVol = N_Elements(goodVoxels) * voxelVol

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: printing widget, as-is
Next Topic: volume measure

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

Current Time: Fri Oct 10 09:57:10 PDT 2025

Total time taken to generate the page: 0.08490 seconds