- mTransform->GetMatrix()->SetElement(i,j, input->GetDirection()[i][j]);
-
- // Create the corresponding transformed image
- mVtkImageReslice.push_back(vtkSmartPointer<vtkImageReslice>::New());
- mVtkImageReslice.back()->SetInterpolationModeToLinear();
- mVtkImageReslice.back()->AutoCropOutputOn();
- mVtkImageReslice.back()->SetBackgroundColor(-1000,-1000,-1000,1);
- mVtkImageReslice.back()->SetResliceTransform(mTransform);
- mVtkImageReslice.back()->SetInput(0, converter->GetOutput());
- mVtkImageReslice.back()->UpdateInformation();
- mTransformedVtkImages.push_back( mVtkImageReslice.back()->GetOutput(0) );