Did you try ImageAppendComponents?<div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkImageAppendComponents.html">http://www.vtk.org/doc/nightly/html/classvtkImageAppendComponents.html</a></div><div><br>
</div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkImageAppendComponents.html"></a>- Wes<br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 12:16 PM, Adam Wiktor <span dir="ltr">&lt;<a href="mailto:awiktor@emory.edu">awiktor@emory.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<br><br>I am fairly new to VTK, so please bear with me. I&#39;m
trying to visualize blood flow in the aorta from MRI scans. The
velocity data is stored in three separate vti images, for the x-, y-
and z- components. Each image has a scalar variable &#39;DICOMImage&#39; which
is the speed in that direction. I need to combine the components into
the overall velocity, which I will then import into paraview to add
streamlines and other things. <br>
<br>My original thought was to use the vtkArrayCalculator to multiply
each image by the unit vector (for the x component, for example, it
would be DICOMImage*iHat). I would then need to combine these vectors
into the velocity with another calculator, just doing x+y+z. I might be
able to simplify this by just using one calculator that did x*iHat
+ y*jHat + z*kHat, but I don&#39;t know how to change the variable names
from DICOMImage to x, y, and z so that the calculator can distinguish
between them.<br>
<br>First of all, I&#39;d like to know if there&#39;s an easier way of doing this.<br><br>If
there isn&#39;t a more straight-forward way, then the main thing I need to
figure out is how to get the final calculator to use the three
different inputs. What would be the best way to do that? <br>
<br>Thanks for any help you can give!<br><font color="#888888"><font color="#888888"><br>- Adam</font>
</font><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><br clear="all"><br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x120<br>
</div>