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