Re: volume measure [message #12771] |
Thu, 03 September 1998 00:00 |
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/
|
|
|