<br>I tried using that example to write a metaImage volume, but I kept on failing to write it properly.<br>Then I found out I had to tell vtk about the data type. It would help if the example made people aware of that:<br>

For instance,<br><br>  imageData-&gt;SetScalarTypeToUnsignedShort()<br><br><br>cheers, Michael<br><br><br><div class="gmail_quote">On Mon, Feb 1, 2010 at 3:04 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</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;"><div class="gmail_quote"><div class="im">On Mon, Feb 1, 2010 at 9:22 AM, Liam Kurmos <span dir="ltr">&lt;<a href="mailto:quantum.leaf@googlemail.com" target="_blank">quantum.leaf@googlemail.com</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;">
Hi, <br><br>I figured out how to do this recently too. Previously I was loading a 1D array and then using setScalars for the whole volume (as per another example). Eventually i found  SetScalarComponentFromDouble in the documentation. <br>



<br>This example would have been helpful but I didn&#39;t find it. At first i didn&#39;t appreciate that ImageData could be a volume. I&#39;m not sure a beginner would know that <a href="http://www.cmake.org/Wiki/VTK/Examples/IterateImageData" target="_blank">IterateImageData</a> is what theyre looking for. <br>



<br>not sure how this could be best improved, but thought i&#39;d give feedback,<br><font color="#888888"><br>Liam</font><div><div></div><div><br></div></div></blockquote><div> </div></div><div>Liam, </div><div><br>
</div><div>This type of feedback is extremely important, thanks.</div><div><br></div><div>I added a sentence to the section:</div><div><br></div><div><div><b>Working with Stuctured (grid aligned) 3D Data (vtkImageData)</b></div>


<div>&quot;ImageData&quot; is not the traditional &quot;flat, 2D image&quot; you are used to. It is a special VTK data structure in the collection of 3D data structures provided by VTK. Here is an overview of these data structures: [1]. Image data can represent at typical 2D image, but also, a 3D volume.</div>


<div><br></div><div>I also added:</div></div>&quot;Set and access locations in a 3D image.&quot;</div><div class="gmail_quote">on the main examples page with the example you referred to, and</div><div class="gmail_quote">


<br></div><div class="gmail_quote">&quot;This example demonstrates how to set and access locations in a 3D image.&quot;</div><div class="gmail_quote">On the example itself.</div><div class="gmail_quote"><br></div><div class="gmail_quote">


Would this have helped you find what you were looking for? Any further suggestions?</div><div class="gmail_quote"><br clear="all">Thanks,<br><font color="#888888"><br>David</font></div>
<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>
<br></blockquote></div><br>