[Insight-users] Joining two VectorImages
Cagatay Bilgin
bilgincc at gmail.com
Mon Mar 5 18:20:18 EST 2012
Hi David,
You might try PasteImageFilter by first creating
your 5D output image and then pasting the appropriate
parts of the input images to the output image. I don't
know if this is the best approach to solve the problem
though, but I guess it would work.
Cagatay
On Mon, Mar 5, 2012 at 2:47 PM, David Doria <daviddoria at gmail.com> wrote:
> On Mon, Mar 5, 2012 at 5:19 PM, David Doria <daviddoria at gmail.com> wrote:
> > It seems that both JoinImageFilter and ComposeImageFilter do not work
> > for itk::VectorImage. If I have an itk::VectorImage<float, 2> and an
> > itk::VectorImage<float, 3>, is there a filter that will make them into
> > an itk::VectorImage<float, 5> ?
>
> Sorry, wrong syntax. What I meant was I have:
>
> typedef itk::VectorImage<float, 2> VectorImageType;
>
> VectorImageType::Pointer a = VectorImageType::New();
> a->SetNumberOfComponentsPerPixel(2);
>
> VectorImageType::Pointer b = VectorImageType::New();
> b->SetNumberOfComponentsPerPixel(3);
>
> and then I want to do:
>
> SomeFilter::Pointer filter = SomeFilter::New();
> filter->SetInput1(a);
> filter->SetInput1(b);
> filter->Update();
>
> and I want
>
> filter->GetOutput()->GetNumberOfComponentsPerPixel() to be 5.
>
> David
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120305/b6f2ea81/attachment.htm>
More information about the Insight-users
mailing list