[Insight-users] SliceBySliceImageFilter usage

doege at zedat.fu-berlin.de doege at zedat.fu-berlin.de
Mon May 11 05:07:11 EDT 2009


Hi Gaëtan,

I tried sobel 3 times in a row, now it works, I think I have a mistake in
my example implementation, but I guess I will find out on my own.

Thanks for your help,

Juliane

>
> 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
>
>




More information about the Insight-users mailing list