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

Function AddPointToPath

Modules/ImageStatistics/src/mitkIntensityProfile.cpp:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static void AddPointToPath(const BaseGeometry* imageGeometry, const Point3D& point, itk::PolyLineParametricPath<3>::Pointer path)
207{
208 Point3D continuousIndexPoint;
209 imageGeometry->WorldToIndex(point, continuousIndexPoint);
210
211 itk::PolyLineParametricPath<3>::ContinuousIndexType vertex;
212 vertex.CastFrom(continuousIndexPoint);
213
214 path->AddVertex(vertex);
215}
216
217static itk::PolyLineParametricPath<3>::Pointer CreatePathFromPoints(BaseGeometry* imageGeometry, const Point3D& startPoint, const Point3D& endPoint)
218{

Callers 1

CreatePathFromPointsFunction · 0.85

Calls 2

WorldToIndexMethod · 0.45
AddVertexMethod · 0.45

Tested by

no test coverage detected