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

Method ApplyToLabels

Modules/Multilabel/src/mitkLabelSetImage.cpp:1350–1355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1348}
1349
1350void mitk::MultiLabelSegmentation::ApplyToLabels(const LabelValueVectorType& values, std::function<void(Label*)>&& lambda)
1351{
1352 auto labels = this->GetLabelsByValue(values);
1353 std::for_each(labels.begin(), labels.end(), lambda);
1354 this->InvokeEvent(LabelsChangedEvent(values));
1355}
1356
1357void mitk::MultiLabelSegmentation::VisitLabels(const LabelValueVectorType& values, std::function<void(const Label*)>&& lambda) const
1358{

Callers 6

SetAllLabelsVisibleMethod · 0.95
SetAllLabelsLockedMethod · 0.95

Calls 3

GetLabelsByValueMethod · 0.95
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected