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

Method GetPrimaryAnatomicStructure

Modules/Multilabel/src/mitkLabel.cpp:808–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806}
807
808mitk::DICOMCodeSequenceWithModifiers mitk::Label::GetPrimaryAnatomicStructure(std::size_t index) const
809{
810 PropertyKeyPath basePath;
811 basePath.AddSelection(LabelPropertyConstants::GetPrimaryAnatomicStructurePropertyBaseName(), index);
812 auto result = GetDICOMCodeSequenceWithModifiersFromProperties(basePath);
813
814 if (!result.has_value())
815 mitkThrow() << "Cannot get PrimaryAnatomicStructure code. Index seems to be invalid. Index: " << index;
816
817 return *result;
818}
819
820std::size_t mitk::Label::GetPrimaryAnatomicStructureCount() const
821{

Callers 4

TestDICOMFunctionsMethod · 0.80
dataMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestDICOMFunctionsMethod · 0.64