<div class="gmail_quote">On Mon, Feb 1, 2010 at 9:22 AM, Liam Kurmos <span dir="ltr"><<a href="mailto:quantum.leaf@googlemail.com">quantum.leaf@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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't find it. At first i didn't appreciate that ImageData could be a volume. I'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'd give feedback,<br><font color="#888888"><br>Liam</font><div><div></div><div class="h5"><br></div></div></blockquote><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>"ImageData" is not the traditional "flat, 2D image" 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>"Set and access locations in a 3D image."</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">"This example demonstrates how to set and access locations in a 3D image."</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><br>David</div>