[Insight-users] SliceBySliceImageFilter usage
doege at zedat.fu-berlin.de
doege at zedat.fu-berlin.de
Fri May 8 09:57:42 EDT 2009
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
More information about the Insight-users
mailing list