[vtkusers] Did i use vtkXMLImageDataWriter the wrong way?

qlizhi qlizhi at gmail.com
Thu Jun 21 02:16:48 EDT 2012


Hi all:
I use vtkXMLImageDataWriter  to save an 3D imagedata,  the size of the file is 15378KB, the header of the file is below:

<?xml version="1.0"?>
<VTKFile type="ImageData" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <ImageData WholeExtent="0 1145 0 901 0 268" Origin="518476 4398442 1042" Spacing="10 10 1">
    <Piece Extent="0 1145 0 901 0 268">
      <PointData Scalars="ImageScalars">
        <DataArray type="UInt16" Name="ImageScalars" format="appended" RangeMin="0"                    RangeMax="8"                    offset="0"                   />
      </PointData>
      <CellData>
      </CellData>
    </Piece>
  </ImageData>

and my question is  1146*902*269*2 = 556126296B, why the file is so small?



qlizhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120621/ccc37c7c/attachment.htm>


More information about the vtkusers mailing list