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

Method ConfigureLabels

Modules/Multilabel/src/mitkMultiLabelSurfaceNetsExtractor.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void mitk::MultiLabelSurfaceNetsExtractor::ConfigureLabels(const std::vector<LabelValueType>& labelValues)
67{
68 m_SurfaceNets->SetSmoothing(m_Smoothing);
69 m_SurfaceNets->SetNumberOfLabels(static_cast<int>(labelValues.size()));
70 for (size_t i = 0; i < labelValues.size(); ++i)
71 m_SurfaceNets->SetLabel(static_cast<int>(i), static_cast<double>(labelValues[i]));
72}
73
74vtkSmartPointer<vtkPolyData> mitk::MultiLabelSurfaceNetsExtractor::Extract(
75 vtkImageData* groupImage,

Callers 2

ExtractMethod · 0.95
ExtractPerLabelMethod · 0.95

Calls 4

SetSmoothingMethod · 0.80
SetNumberOfLabelsMethod · 0.80
sizeMethod · 0.45
SetLabelMethod · 0.45

Tested by

no test coverage detected