[vtkusers] Read meta image data extent/spacing without loading image data
Grant McAuley
gmcauley at llu.edu
Tue Apr 30 15:37:42 EDT 2013
vtkSmartPointer<vtkXMLImageDataReader> reader =
vtkSmartPointer<vtkXMLImageDataReader>::New();
reader->SetFileName(inputFilename);
reader->UpdateInformation();
reader->GetOutput()->GetSpacing();
etc...
On Sat, Apr 27, 2013 at 7:35 PM, zlf <jxdw_zlf at yahoo.com.cn> wrote:
> How to read meta-image
> information(ElementDataFile/DimSize/ElementSpacing/Offset) without loading
> image data? I only need those image information in some cases. Loading
> image
> data is not needed and slow.
>
> Regards,
>
> zlf
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Read-meta-image-data-extent-spacing-without-loading-image-data-tp5720427.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Grant McAuley
Postdoctoral Fellow
Radiation Research Labs
Radiation Medicine
Loma Linda University
(909) 558-1000 Ext 85173
gmcauley at llu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130430/ff661684/attachment.htm>
More information about the vtkusers
mailing list