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

Method ApplyPhysicalToIndexMatrix

Common/DataModel/vtkImageData.cxx:1822–1832  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1820
1821//------------------------------------------------------------------------------
1822void vtkImageData::ApplyPhysicalToIndexMatrix(vtkMatrix4x4* sourcePhysicalToIndexMatrix)
1823{
1824 if (sourcePhysicalToIndexMatrix == nullptr)
1825 {
1826 vtkErrorMacro("Source PhysicalToIndexMatrix matrix is null");
1827 return;
1828 }
1829 vtkNew<vtkMatrix4x4> indexToPhysicalMatrix;
1830 vtkMatrix4x4::Invert(sourcePhysicalToIndexMatrix, indexToPhysicalMatrix);
1831 this->ApplyIndexToPhysicalMatrix(indexToPhysicalMatrix);
1832}
1833
1834//------------------------------------------------------------------------------
1835// Override this method because of blanking

Callers 1

DoOrientationTestFunction · 0.80

Calls 2

InvertFunction · 0.50

Tested by 1

DoOrientationTestFunction · 0.64