[Insight-users] SliceBySliceImageFilter usage
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Fri May 8 11:03:41 EDT 2009
Hi Juliane,
I've tested SliceBySliceImageFilter with a full pipeline — it works
here.
Can you give more informations on the crash, like an error message, or
a backtrace?
Regards,
Gaëtan
Le 8 mai 09 à 15:57, doege at zedat.fu-berlin.de a écrit :
> Hi,
>
> I have a question. SliceBySliceImageFilter with two filters worked
> fine
> but I would like to use SliceBySliceImageFilter for a filter
> pipeline with
> more than two filters, how can I do this? Or isn´t it possible?
>
> I tried this but my program crashes:
>
> typedef itk::SliceBySliceImageFilter< InternalImageType,
> InternalImageType, MulByConsImageFilterType,
> SobelFilterType,SliceImageType,SliceImageType > SliceBySliceIFType;
> SliceBySliceIFType::Pointer sliceBySliceIFilter =
> SliceBySliceIFType::New();
>
> multByConstFilter->SetConstant(3);
> addImageFilter->SetInput1(multByConstFilter->GetOutput());
> addImageFilter->SetInput2(multByConstFilter->GetOutput());
> addImageFilter->Update();
> sobelFilter->SetInput(addImageFilter->GetOutput()); //I think here
> it crashes
>
> sliceBySliceIFilter -> SetInput(itkImage);
> sliceBySliceIFilter -> SetInputFilter(multByConstFilter);
> sliceBySliceIFilter -> SetOutputFilter(sobelFilter);
> sliceBySliceIFilter -> Update();
>
> Thanks,
> Juliane
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.mandriva.org
http://www.itk.org http://www.clavier-dvorak.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090508/73ca2f23/attachment.pgp>
More information about the Insight-users
mailing list