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

Function GetDirectionCosines

Wrapping/Python/mitk/GeometryHelpers.cpp:117–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117std::array<double, 9> GetDirectionCosines(const mitk::TimeGeometry* tg, mitk::TimeStepType t)
118{
119 auto dir = GetDirection(tg, t);
120 auto buf = dir.unchecked<2>();
121 std::array<double, 9> flat{};
122
123 for (int row = 0; row < 3; ++row)
124 for (int col = 0; col < 3; ++col)
125 flat[row * 3 + col] = buf(row, col);
126
127 return flat;
128}

Callers 2

BindGeometryAccessorsFunction · 0.85
InitImageFunction · 0.85

Calls 1

GetDirectionFunction · 0.85

Tested by

no test coverage detected