[vtkusers] MassProperties in micrometer
David Gobbi
david.gobbi at gmail.com
Thu Jan 7 19:36:41 EST 2016
Yes, if you want to compute volumes then you must set the DataSpacing. Do
you know the correct spacing for these images?
If you set the spacing in millimetres, then VTK will compute the volume in
mm^3. If you set the spacing in kilometres, it will compute the volume in
km^3.
- David
On Thu, Jan 7, 2016 at 5:29 PM, eduardo <eduardo.hssi at gmail.com> wrote:
> Hello,
> I am creating a volume as an image stack as the code:
>
> reader = vtk.vtkPNGReader ()
> reader.SetFilePrefix (path)
> reader.SetFilePattern (pattern)
> reader.SetFileNameSliceOffset (0)
> reader.SetFileNameSliceSpacing (1)
> reader.SetDataSpacing (1, 1, 1)
> reader.SetDataOrigin (0, 0, 0)
> reader.SetDataExtent (0, 499, 0, 499, 1 70)
>
> With MassProperties and MachingCubes recover the volume. How to recover the
> volume measure micrometer or millimeter?
>
> Would be setting the parameter SetDataSpacing?
>
> thank you
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160107/e5711ab0/attachment.html>
More information about the vtkusers
mailing list