I was not aware of that filter (as I never needed it). And sometimes filters are so cumbersome to use it is easier and faster to write your own specialized code (last week it was 2D histogram creation for me).<div><br></div>
<div>OT: use &quot;reply to all&quot;, so there is my address in the TO list - otherwise it does not end in my inbox, but rather in ITK folder with tons of other messages - which I occasionally check, but those checks may be days or weeks apart.</div>
<div><br></div><div>Dženan<br><br><div class="gmail_quote">On Fri, Jul 23, 2010 at 17:21, habibbaluwala2010 <span dir="ltr">&lt;<a href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi Dženan,<br>
                I am very tahnkful for your reply but later on on scanning<br>
through the different filters I found an easier alternative which is the<br>
<br>
#include &lt;itkCompose3DVectorImageFilter.h&gt;<br>
 This does the job that I require and hence I ma using this filter. However<br>
what you sufggested will be useful in cases of more dimensions. Again I<br>
thank you for the reply.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
Dženan Zukić wrote:<br>
&gt;<br>
&gt; Load 3 input image, Instantiate 3-component vector image, use iterators to<br>
&gt; go through input images to read pixels, use iterator to go through vector<br>
&gt; image and write pixels.<br>
&gt; You will probably have something like this:<br>
&gt; vecImage[vecIterator][0]=it1.Get();<br>
&gt; vecImage[vecIterator][1]=it2.Get();<br>
&gt; vecImage[vecIterator][2]=it3.Get();<br>
&gt; in a for loop.<br>
&gt;<br>
&gt; Dženan<br>
&gt;<br>
&gt; On Thu, Jul 22, 2010 at 15:42, habibbaluwala2010<br>
&gt; &lt;<a href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; Hi everyone , My problem is that I have three normal images and I want to<br>
&gt;&gt; generate a three dimensional vector image using these images. For example<br>
&gt;&gt; 1.<br>
&gt;&gt; In the the first image I have the values for x deformation , in the<br>
&gt;&gt; second<br>
&gt;&gt; image I have the values for the Y deformation and in the third image I<br>
&gt;&gt; have<br>
&gt;&gt; the values for the z deformation . 2. I want to combine the above three<br>
&gt;&gt; images to produce a single vector image representing the deformation<br>
&gt;&gt; field.<br>
&gt;&gt; I just cant find the right filter/ function to do this step and if anyone<br>
&gt;&gt; could recommend any ideas it will be very helpful .<br>
&gt;&gt; ------------------------------<br>
&gt;&gt; View this message in context: How to form a three dimensional vector<br>
&gt;&gt; image<br>
&gt;&gt; using three normal<br>
</div></div>&gt;&gt; images&lt;<a href="http://old.nabble.com/How-to-form-a-three-dimensional-vector-image-using-three-normal-images-tp29236989p29236989.html" target="_blank">http://old.nabble.com/How-to-form-a-three-dimensional-vector-image-using-three-normal-images-tp29236989p29236989.html</a>&gt;<br>

<div class="im">&gt;&gt; Sent from the ITK - Users mailing list<br>
</div>&gt;&gt; archive&lt;<a href="http://old.nabble.com/ITK---Users-f14224.html" target="_blank">http://old.nabble.com/ITK---Users-f14224.html</a>&gt;at Nabble.com.<br>
<div class="im">&gt;&gt;<br>
&gt;&gt; _____________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
<br>
</div><font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/How-to-form-a-three-dimensional-vector-image-using-three-normal-images-tp29236989p29248557.html" target="_blank">http://old.nabble.com/How-to-form-a-three-dimensional-vector-image-using-three-normal-images-tp29236989p29248557.html</a><br>

</font><div><div></div><div class="h5">Sent from the ITK - Users mailing list archive at Nabble.com.<br>
<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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>