----------------------------------------------------------------------------
| 748 | |
| 749 | //---------------------------------------------------------------------------- |
| 750 | bool vtkAxisAlignedTransformFilter::ProcessImageData( |
| 751 | vtkImageData* inputID, vtkImageData* outputID, int rotationMatrix[3][3]) |
| 752 | { |
| 753 | outputID->DeepCopy(inputID); |
| 754 | |
| 755 | outputID->SetOrigin(inputID->GetOrigin()[0] + Translation[0], |
| 756 | inputID->GetOrigin()[1] + Translation[1], inputID->GetOrigin()[2] + Translation[2]); |
| 757 | |
| 758 | outputID->SetDirectionMatrix(Scale[0] * rotationMatrix[0][0], Scale[1] * rotationMatrix[0][1], |
| 759 | Scale[2] * rotationMatrix[0][2], Scale[0] * rotationMatrix[1][0], |
| 760 | Scale[1] * rotationMatrix[1][1], Scale[2] * rotationMatrix[1][2], |
| 761 | Scale[0] * rotationMatrix[2][0], Scale[1] * rotationMatrix[2][1], |
| 762 | Scale[2] * rotationMatrix[2][2]); |
| 763 | return true; |
| 764 | } |
| 765 | |
| 766 | //---------------------------------------------------------------------------- |
| 767 | bool vtkAxisAlignedTransformFilter::ProcessRectilinearGrid( |
no test coverage detected