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

Function PrepareInput

Modules/Multilabel/src/mitkMultiLabelSurfaceNetsExtractor.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace
25{
26 void PrepareInput(vtkImageData* groupImage)
27 {
28 // The vtkImageData wraps an MITK-owned buffer via SetVoidArray; in-place edits do
29 // not bump the wrapper's MTime. Force VTK to treat the data as modified so the
30 // pipeline re-executes against the current contents.
31 if (auto* scalars = groupImage->GetPointData()->GetScalars())
32 scalars->Modified();
33
34 groupImage->Modified();
35 }
36}
37
38mitk::MultiLabelSurfaceNetsExtractor::MultiLabelSurfaceNetsExtractor()

Callers 2

ExtractMethod · 0.85
ExtractPerLabelMethod · 0.85

Calls 1

ModifiedMethod · 0.45

Tested by

no test coverage detected