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

Method ComputeTransforms

Common/DataModel/vtkImageData.cxx:1683–1694  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1681
1682//------------------------------------------------------------------------------
1683void vtkImageData::ComputeTransforms()
1684{
1685 this->DirectionMatrixIsIdentity = this->DirectionMatrix->IsIdentity();
1686
1687 vtkImageData::ComputeIndexToPhysicalMatrix(this->Origin, this->Spacing,
1688 this->DirectionMatrix->GetData(), this->IndexToPhysicalMatrix->GetData());
1689 this->IndexToPhysicalMatrix->Modified();
1690
1691 vtkImageData::ComputePhysicalToIndexMatrix(this->Origin, this->Spacing,
1692 this->DirectionMatrix->GetData(), this->PhysicalToIndexMatrix->GetData());
1693 this->PhysicalToIndexMatrix->Modified();
1694}
1695
1696//------------------------------------------------------------------------------
1697void vtkImageData::ComputeIndexToPhysicalMatrix(

Callers 7

vtkImageDataMethod · 0.95
CopyStructureMethod · 0.95
InternalImageDataCopyMethod · 0.95
SetSpacingMethod · 0.95
SetOriginMethod · 0.95
SetDirectionMatrixMethod · 0.95

Calls 3

IsIdentityMethod · 0.45
GetDataMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected