Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkLabelSet_h
14 #define mitkLabelSet_h
20 #include <itkObject.h>
21 #include <itkObjectFactory.h>
22 #include <itkEventObject.h>
127 void OnLabelModified(
const Object*,
const itk::EventObject&);
131 void SetLayer(
unsigned int);
165 unsigned int GetNumberOfLabels()
const;
169 void SetAllLabelsVisible(
bool);
173 void SetAllLabelsLocked(
bool);
177 void RemoveAllLabels();
179 void SetNextActiveLabel();
195 itkGetMacro(Layer,
int);
197 itkGetConstMacro(Layer,
int);
207 void UpdateLookupTable(
PixelType pixelValue);
212 std::vector<LabelValueType> GetUsedLabelValues()
const;
222 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
259 std::vector<std::pair<Label::PixelType, Label::PixelType> > labelMapping = { {1,1} });
const MITKCORE_EXPORT ScalarType eps
#define MITKMULTILABEL_EXPORT
Message AllLabelsModifiedEvent
AllLabelsModifiedEvent is emitted whenever a new label has been removed from the LabelSet.
LookupTable::Pointer m_LookupTable
const Label * GetActiveLabel() const
Message1< LabelValueType > AddLabelEvent
AddLabelEvent is emitted whenever a new label has been added to the LabelSet.
Message1< LabelValueType > ModifyLabelEvent
ModifyLabelEvent is emitted whenever a label has been modified from the LabelSet.
mitk::Label::PixelType PixelType
std::map< LabelValueType, Label::Pointer > LabelContainerType
LabelContainerType::iterator LabelContainerIteratorType
LabelContainerType m_LabelContainer
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
PixelType m_ActiveLabelValue
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
The LookupTable class mitk wrapper for a vtkLookupTable.
#define mitkClassMacroItkParent(className, SuperClassName)
mitk::Label::PixelType LabelValueType
DataCollection - Class to facilitate loading/accessing structured data.
A data structure describing a label.
Class for defining the data type of pixels.
Message1< LabelValueType > RemoveLabelEvent
RemoveLabelEvent is emitted whenever a new label has been removed from the LabelSet.
std::function< std::vector< LabelValueType >()> ReservedLabelValuesFunctor
LabelContainerType::const_iterator LabelContainerConstIteratorType
#define mitkCloneMacro(classname)
MITKMULTILABEL_EXPORT LabelSet::Pointer GenerateLabelSetWithMappedValues(const LabelSet *sourceLabelSet, std::vector< std::pair< Label::PixelType, Label::PixelType > > labelMapping={ {1, 1} })
Message1< PixelType > ActiveLabelEvent
ActiveLabelEvent is emitted whenever a label has been set as active in the LabelSet.
ReservedLabelValuesFunctor m_ReservedLabelValuesFunctor
Event/message/notification class.