| 55 | } |
| 56 | |
| 57 | mitk::SegSourceImageRelationRule::RelationUIDType |
| 58 | mitk::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 | |
| 69 | mitk::SegSourceImageRelationRule::RelationUIDType |
| 70 | mitk::SegSourceImageRelationRule::Connect(MultiLabelSegmentation* seg, |