<div dir="ltr"><div><span class="" style="white-space:pre">        </span></div><div>vtkSmartPointer<vtkXMLImageDataReader> reader = vtkSmartPointer<vtkXMLImageDataReader>::New();</div><div><span class="" style="white-space:pre">        </span>reader->SetFileName(inputFilename);</div>
<div><span class="" style="white-space:pre">        </span>reader->UpdateInformation();</div><div><span class="" style="white-space:pre">        </span>reader->GetOutput()->GetSpacing();</div><div style> etc...</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 27, 2013 at 7:35 PM, zlf <span dir="ltr"><<a href="mailto:jxdw_zlf@yahoo.com.cn" target="_blank">jxdw_zlf@yahoo.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How to read meta-image<br>
information(ElementDataFile/DimSize/ElementSpacing/Offset) without loading<br>
image data? I only need those image information in some cases. Loading image<br>
data is not needed and slow.<br>
<br>
Regards,<br>
<br>
zlf<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Read-meta-image-data-extent-spacing-without-loading-image-data-tp5720427.html" target="_blank">http://vtk.1045678.n5.nabble.com/Read-meta-image-data-extent-spacing-without-loading-image-data-tp5720427.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Grant McAuley<div>Postdoctoral Fellow</div><div>Radiation Research Labs</div><div>Radiation Medicine</div><div>Loma Linda University</div><div>(909) 558-1000 Ext 85173</div>
<div><a href="mailto:gmcauley@llu.edu" target="_blank">gmcauley@llu.edu</a></div>
</div>