Hi David, <div><br></div><div>You might try PasteImageFilter by first creating <div>your 5D output image and then pasting the appropriate</div><div>parts of the input images to the output image. I don&#39;t </div><div>know if this is the best approach to solve the problem </div>
<div>though, but I guess it would work. </div><div><div><br></div><div>Cagatay</div><div><br><div class="gmail_quote">On Mon, Mar 5, 2012 at 2:47 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@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"><div class="im">On Mon, Mar 5, 2012 at 5:19 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt; wrote:<br>

&gt; It seems that both JoinImageFilter and ComposeImageFilter do not work<br>
&gt; for itk::VectorImage. If I have an itk::VectorImage&lt;float, 2&gt; and an<br>
&gt; itk::VectorImage&lt;float, 3&gt;, is there a filter that will make them into<br>
&gt; an itk::VectorImage&lt;float, 5&gt; ?<br>
<br>
</div>Sorry, wrong syntax. What I meant was I have:<br>
<br>
typedef itk::VectorImage&lt;float, 2&gt; VectorImageType;<br>
<br>
VectorImageType::Pointer a = VectorImageType::New();<br>
a-&gt;SetNumberOfComponentsPerPixel(2);<br>
<br>
VectorImageType::Pointer b = VectorImageType::New();<br>
b-&gt;SetNumberOfComponentsPerPixel(3);<br>
<br>
and then I want to do:<br>
<br>
SomeFilter::Pointer filter = SomeFilter::New();<br>
filter-&gt;SetInput1(a);<br>
filter-&gt;SetInput1(b);<br>
filter-&gt;Update();<br>
<br>
and I want<br>
<br>
filter-&gt;GetOutput()-&gt;GetNumberOfComponentsPerPixel() to be 5.<br>
<div><div></div><div class="h5"><br>
David<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></div></div>