MCPcopy Create free account
hub / github.com/MITK/MITK / WorldToIndex

Method WorldToIndex

Modules/Core/src/DataManagement/mitkBaseGeometry.cpp:440–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440void mitk::BaseGeometry::WorldToIndex(const mitk::Point3D &pt_mm, mitk::Point3D &pt_units) const
441{
442 mitk::Vector3D tempIn, tempOut;
443 const TransformType::OffsetType &offset = this->GetIndexToWorldTransform()->GetOffset();
444 tempIn = pt_mm.GetVectorFromOrigin() - offset;
445
446 WorldToIndex(tempIn, tempOut);
447
448 pt_units = Point3D(tempOut);
449}
450
451void mitk::BaseGeometry::WorldToIndex(const mitk::Vector3D &vec_mm, mitk::Vector3D &vec_units) const
452{

Calls 8

WorldToIndexFunction · 0.85
GetOffsetMethod · 0.80
GetPointerMethod · 0.80
GetMatrixMethod · 0.80
GetVnlMatrixMethod · 0.80
NewFunction · 0.50
GetMTimeMethod · 0.45