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 "reply to all", 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"><<a href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>></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 <itkCompose3DVectorImageFilter.h><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>
><br>
> Load 3 input image, Instantiate 3-component vector image, use iterators to<br>
> go through input images to read pixels, use iterator to go through vector<br>
> image and write pixels.<br>
> You will probably have something like this:<br>
> vecImage[vecIterator][0]=it1.Get();<br>
> vecImage[vecIterator][1]=it2.Get();<br>
> vecImage[vecIterator][2]=it3.Get();<br>
> in a for loop.<br>
><br>
> Dženan<br>
><br>
> On Thu, Jul 22, 2010 at 15:42, habibbaluwala2010<br>
> <<a href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>>wrote:<br>
><br>
>> Hi everyone , My problem is that I have three normal images and I want to<br>
>> generate a three dimensional vector image using these images. For example<br>
>> 1.<br>
>> In the the first image I have the values for x deformation , in the<br>
>> second<br>
>> image I have the values for the Y deformation and in the third image I<br>
>> have<br>
>> the values for the z deformation . 2. I want to combine the above three<br>
>> images to produce a single vector image representing the deformation<br>
>> field.<br>
>> I just cant find the right filter/ function to do this step and if anyone<br>
>> could recommend any ideas it will be very helpful .<br>
>> ------------------------------<br>
>> View this message in context: How to form a three dimensional vector<br>
>> image<br>
>> using three normal<br>
</div></div>>> images<<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>><br>
<div class="im">>> Sent from the ITK - Users mailing list<br>
</div>>> archive<<a href="http://old.nabble.com/ITK---Users-f14224.html" target="_blank">http://old.nabble.com/ITK---Users-f14224.html</a>>at Nabble.com.<br>
<div class="im">>><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>
>><br>
>><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>
><br>
><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>