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

Method Connect

Modules/Multilabel/src/mitkSegSourceImageRelationRule.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57mitk::SegSourceImageRelationRule::RelationUIDType
58mitk::SegSourceImageRelationRule::Connect(MultiLabelSegmentation* seg, const Image* sourceImage)
59{
60 if (seg == nullptr)
61 mitkThrow() << "SegSourceImageRelationRule::Connect: seg must not be nullptr.";
62 if (sourceImage == nullptr)
63 mitkThrow() << "SegSourceImageRelationRule::Connect: source_image must not be nullptr.";
64
65 auto rule = SegSourceImageRelationRule::New();
66 return rule->Connect(seg, static_cast<const IPropertyProvider*>(sourceImage));
67}
68
69mitk::SegSourceImageRelationRule::RelationUIDType
70mitk::SegSourceImageRelationRule::Connect(MultiLabelSegmentation* seg,

Calls 4

GetPointerMethod · 0.80
NewFunction · 0.50
SetPropertyMethod · 0.45
emptyMethod · 0.45