<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>