Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkLabelSetImageConverter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkLabelSetImageConverter_h
14 #define mitkLabelSetImageConverter_h
15 
16 #include <mitkLabelSetImage.h>
17 
18 namespace mitk
19 {
24 
30  MITKMULTILABEL_EXPORT LabelSetImage::Pointer ConvertImageVectorToLabelSetImage(const std::vector<mitk::Image::Pointer>& images, const TimeGeometry* timeGeometry);
31 
32  MITKMULTILABEL_EXPORT std::vector<mitk::Image::Pointer> SplitVectorImage(const Image* vecImage);
33 
38 
40 
42 
50  MITKMULTILABEL_EXPORT Image::Pointer CreateLabelMask(const LabelSetImage* segmentation, LabelSetImage::LabelValueType labelValue, bool createBinaryMap = true);
51 
61  using IDToLabelClassNameMapType = std::map<LabelSetImage::LabelValueType, std::string>;
62  MITKMULTILABEL_EXPORT std::pair<Image::Pointer, IDToLabelClassNameMapType> CreateLabelClassMap(const LabelSetImage* segmentation, LabelSetImage::GroupIndexType groupID, const LabelSetImage::LabelValueVectorType& selectedLabels);
72  MITKMULTILABEL_EXPORT std::pair<Image::Pointer, IDToLabelClassNameMapType> CreateLabelClassMap(const LabelSetImage* segmentation, LabelSetImage::GroupIndexType groupID);
73 
74 }
75 
76 #endif
MITKMULTILABEL_EXPORT
#define MITKMULTILABEL_EXPORT
Definition: MitkMultilabelExports.h:15
mitk::CreateLabelMask
MITKMULTILABEL_EXPORT Image::Pointer CreateLabelMask(const LabelSetImage *segmentation, LabelSetImage::LabelValueType labelValue, bool createBinaryMap=true)
mitk::IDToLabelClassNameMapType
std::map< LabelSetImage::LabelValueType, std::string > IDToLabelClassNameMapType
Definition: mitkLabelSetImageConverter.h:61
mitk::ConvertImageVectorToLabelSetImage
MITKMULTILABEL_EXPORT LabelSetImage::Pointer ConvertImageVectorToLabelSetImage(const std::vector< mitk::Image::Pointer > &images, const TimeGeometry *timeGeometry)
mitk::ConvertLabelSetImageToImage
MITKMULTILABEL_EXPORT Image::Pointer ConvertLabelSetImageToImage(LabelSetImage::ConstPointer labelSetImage)
Convert mitk::LabelSetImage to mitk::Image (itk::VectorImage)
mitk::LabelSetImage::LabelVectorType
LabelVector LabelVectorType
Definition: mitkLabelSetImage.h:77
mitk::GenerateLabelSetWithMappedValues
MITKMULTILABEL_EXPORT LabelSetImage::LabelVectorType GenerateLabelSetWithMappedValues(const LabelSetImage::ConstLabelVectorType &, LabelValueMappingVector labelMapping)
mitk::SplitVectorImage
MITKMULTILABEL_EXPORT std::vector< mitk::Image::Pointer > SplitVectorImage(const Image *vecImage)
mitk::CheckForLabelValueConflictsAndResolve
MITKMULTILABEL_EXPORT bool CheckForLabelValueConflictsAndResolve(const mitk::LabelSetImage::LabelValueVectorType &newValues, mitk::LabelSetImage::LabelValueVectorType &usedLabelValues, mitk::LabelSetImage::LabelValueVectorType &correctedLabelValues)
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ConvertImageToGroupImage
MITKMULTILABEL_EXPORT Image::Pointer ConvertImageToGroupImage(const Image *inputImage, mitk::LabelSetImage::LabelValueVectorType &foundLabels)
mitk::CreateLabelClassMap
MITKMULTILABEL_EXPORT std::pair< Image::Pointer, IDToLabelClassNameMapType > CreateLabelClassMap(const LabelSetImage *segmentation, LabelSetImage::GroupIndexType groupID, const LabelSetImage::LabelValueVectorType &selectedLabels)
mitk::Image::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: mitkImage.h:81
mitk::Image::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkImage.h:81
itk::Image
class ITK_EXPORT Image
Definition: mitkGeometryClipImageFilter.h:25
mitk::ConvertImageToLabelSetImage
MITKMULTILABEL_EXPORT LabelSetImage::Pointer ConvertImageToLabelSetImage(Image::Pointer image)
Convert mitk::Image to mitk::LabelSetImage, templating and differentation between itk::Image and itk:...
mitk::LabelValueMappingVector
std::vector< std::pair< Label::PixelType, Label::PixelType > > LabelValueMappingVector
Definition: mitkLabelSetImage.h:620
mitk::LabelSetImage::GroupIndexType
std::size_t GroupIndexType
Definition: mitkLabelSetImage.h:74
mitk::LabelSetImage::LabelValueVectorType
std::vector< LabelValueType > LabelValueVectorType
Definition: mitkLabelSetImage.h:78
mitk::LabelSetImage
LabelSetImage class for handling labels and layers in a segmentation session.
Definition: mitkLabelSetImage.h:43
mitk::LabelSetImage::ConstLabelVectorType
ConstLabelVector ConstLabelVectorType
Definition: mitkLabelSetImage.h:76
mitk::LabelSetImage::LabelValueType
mitk::Label::PixelType LabelValueType
Definition: mitkLabelSetImage.h:75
mitkLabelSetImage.h