//--------------------------------------------------------------------
// Extract input slices
StartNewStep("Extract input slices");
- writeImage<ImageType>(input, "beforex.mhd");
typedef clitk::ExtractSliceFilter<ImageType> ExtractSliceFilterType;
typename ExtractSliceFilterType::Pointer extractSliceFilter = ExtractSliceFilterType::New();
extractSliceFilter->SetInput(input);
typedef typename ExtractSliceFilterType::SliceType SliceType;
std::vector<typename SliceType::Pointer> mInputSlices;
extractSliceFilter->GetOutputSlices(mInputSlices);
- DD(mInputSlices.size());
StopCurrentStep<SliceType>(mInputSlices[0]);
//--------------------------------------------------------------------
extractSliceFilter->Update();
std::vector<typename SliceType::Pointer> mObjectSlices;
extractSliceFilter->GetOutputSlices(mObjectSlices);
- DD(mObjectSlices.size());
StopCurrentStep<SliceType>(mObjectSlices[0]);
//--------------------------------------------------------------------