MCPcopy Create free account
hub / github.com/Kitware/VTK / ProcessImageData

Method ProcessImageData

Filters/General/vtkAxisAlignedTransformFilter.cxx:750–764  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

748
749//----------------------------------------------------------------------------
750bool 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//----------------------------------------------------------------------------
767bool vtkAxisAlignedTransformFilter::ProcessRectilinearGrid(

Callers 1

DispatchMethod · 0.95

Calls 4

SetDirectionMatrixMethod · 0.80
DeepCopyMethod · 0.45
SetOriginMethod · 0.45
GetOriginMethod · 0.45

Tested by

no test coverage detected