for clarity:<br><br>that should be a series of segmented volume. The file has got multiple slices<br>with segmented pixels on them, so I need to create a VTK volume with correct<br>x, y and z spacing.<br><br>Michael<br><br>

<div class="gmail_quote">On Mon, Jan 25, 2010 at 4:36 PM, michiel mentink <span dir="ltr">&lt;<a href="mailto:michael.mentink@st-hughs.ox.ac.uk">michael.mentink@st-hughs.ox.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>I&#39;d like to import image data into VTK from a textfile.<br>The file is an exported segmented image, coming from MIMICS.<br><br>The textfile has this data:<br><br>82.5000000000000    -119.687500000000    35.2119100000000    251<br>


82.1875000000000    -119.375000000000    35.2119100000000    201<br>82.5000000000000    -119.375000000000    35.2119100000000    239<br>82.8125000000000    -119.375000000000    35.2119100000000    226<br>82.1875000000000    -119.062500000000    35.2119100000000    195<br>


82.5000000000000    -119.062500000000    35.2119100000000    213<br>82.8125000000000    -119.062500000000    35.2119100000000    201<br>83.1250000000000    -119.062500000000    35.2119100000000    163<br>82.1875000000000    -118.750000000000    35.2119100000000    176<br>


82.5000000000000    -118.750000000000    35.2119100000000    176<br>82.8125000000000    -118.750000000000    35.2119100000000    176<br><br>with values for x, y, z and image intensity.<br><br>How do I import this data into VTK?<br>


<br>I guess I have to read everything into an array first, create an empty image<br>and then copy the pixel values into that empty image?<br>How do I set the inter pixel spacing and inter slice spacing?<br><br>Kind regards,<br>


<br>Michael<br>
</blockquote></div><br>