22 #include <vtkSmartPointer.h> 24 #include <vtkSmartPointer.h> 75 auto presets = vtkSmartPointer<AnatomicalStructureColorPresets>::New();
76 presets->LoadPreset();
78 for (
const auto &preset : presets->GetCategoryPresets())
80 auto presetOrganName = preset.first;
81 if (label->
GetName().compare(presetOrganName) == 0)
83 category = preset.second;
88 for (
const auto &preset : presets->GetTypePresets())
90 auto presetOrganName = preset.first;
91 if (label->
GetName().compare(presetOrganName) == 0)
LabelContainerConstIteratorType IteratorConstBegin() const
Returns a const iterator poiting to the begining of the container.
static void SetDICOMSegmentProperties(Label *label)
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Add new or change existent property.
LabelContainerConstIteratorType IteratorConstEnd() const
Returns a const iterator pointing to the end of the container.
std::string MITKCORE_EXPORT GeneratePropertyNameForDICOMTag(unsigned int group, unsigned int element)
DataCollection - Class to facilitate loading/accessing structured data.
A data structure describing a label.
static DICOMTagPath SEGMENT_LABEL_PATH()
static DICOMTagPath SEGMENT_MODIFIER_CODE_VALUE_PATH()
static DICOMTagPath SEGMENT_CATEGORY_CODE_SCHEME_PATH()
MITKDICOMREADER_EXPORT std::string DICOMTagPathToPropertyName(const DICOMTagPath &tagPath)
static DICOMTagPath SEGMENT_ALGORITHM_TYPE_PATH()
unsigned int GetNumberOfLayers() const
static DICOMTagPath SEGMENT_MODIFIER_CODE_MEANING_PATH()
static DICOMTagPath SEGMENT_CATEGORY_CODE_MEANING_PATH()
PixelType GetValue() const
static DICOMTagPath SEGMENT_CATEGORY_CODE_VALUE_PATH()
mitk::PropertyList::Pointer GetPropertyList() const
Get the data's property list.
static DICOMTagPath SEGMENT_TYPE_CODE_VALUE_PATH()
LabelSetImage class for handling labels and layers in a segmentation session.
static DICOMTagPath SEGMENT_NUMBER_PATH()
static DICOMTagPath SEGMENT_MODIFIER_CODE_SCHEME_PATH()
static void DeriveDICOMSegmentationProperties(LabelSetImage *dicomSegImage)
static DICOMTagPath SEGMENT_TYPE_CODE_SCHEME_PATH()
mitk::LabelSet * GetLabelSet(unsigned int layer=0)
Gets the mitk::LabelSet for the given layer.
std::string GetName() const
static DICOMTagPath SEGMENT_TYPE_CODE_MEANING_PATH()