- typedef itk::Image<PixelType,Dim> ImageType;
- typedef itk::Image<PixelType,Dim-1> OutputImageType;
- typedef itk::MaximumProjectionImageFilter<ImageType,OutputImageType> FilterType;
- typename FilterType::Pointer filter = FilterType::New();
- filter->SetProjectionDimension(Dim-1);
- typename ImageType::ConstPointer input = vvImageToITK<ImageType>(image);
- filter->SetInput(input);
- filter->Update();
- mOutputImage=vvImageFromITK<Dim-1,PixelType>(filter->GetOutput());
+ typedef itk::Image<PixelType,Dim> ImageType;
+ typedef itk::Image<PixelType,Dim-1> OutputImageType;
+ typedef itk::MaximumProjectionImageFilter<ImageType,OutputImageType> FilterType;
+ typename FilterType::Pointer filter = FilterType::New();
+ filter->SetProjectionDimension(Dim-1);
+ typename ImageType::ConstPointer input = vvImageToITK<ImageType>(image);
+ filter->SetInput(input);
+ filter->Update();
+ mOutputImage=vvImageFromITK<Dim-1,PixelType>(filter->GetOutput());