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

Method UpdateStaticCosts

Filters/Modeling/vtkDijkstraImageGeodesicPath.cxx:267–280  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

265
266//------------------------------------------------------------------------------
267void vtkDijkstraImageGeodesicPath::UpdateStaticCosts(vtkImageData* image)
268{
269 for (int u = 0; u < static_cast<int>(this->Internals->Adjacency.size()); ++u)
270 {
271 std::map<int, double>& mu = this->Internals->Adjacency[u];
272 std::map<int, double>::iterator it = mu.begin();
273 for (; it != mu.end(); ++it)
274 {
275 int v = (*it).first;
276 (*it).second = this->CalculateStaticEdgeCost(image, u, v);
277 }
278 }
279 this->RebuildStaticCosts = false;
280}
281
282//------------------------------------------------------------------------------
283void vtkDijkstraImageGeodesicPath::PrintSelf(ostream& os, vtkIndent indent)

Callers 1

RequestDataMethod · 0.95

Calls 4

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected