13 #ifndef mitkDICOMSegmentationIO_h
14 #define mitkDICOMSegmentationIO_h
21 #include <dcmqi/Dicom2ItkConverterBase.h>
22 #include <dcmqi/JSONSegmentationMetaInformationHandler.h>
24 #include <dcmtk/dcmdata/dcitem.h>
66 std::vector<itk::SmartPointer<BaseData>>
DoRead()
override;
88 dcmqi::JSONSegmentationMetaInformationHandler &handler)
const;
89 void SetLabelProperties(
Label *label, dcmqi::SegmentAttributes *segmentAttribute);
106 MultiLabelSegmentation::Pointer ReadLabelmapSegmentation(
107 dcmqi::Dicom2ItkConverterBase &converter,
108 dcmqi::JSONSegmentationMetaInformationHandler &metaInfo);
123 MultiLabelSegmentation::Pointer ReadBinarySegmentation(
124 dcmqi::Dicom2ItkConverterBase &converter,
125 dcmqi::JSONSegmentationMetaInformationHandler &metaInfo,
126 bool assumeOverlappingSegments);
Abstract base class for implementing a combined file reader and writer.
std::vector< itk::SmartPointer< BaseData > > Read() override
Read data and create a list of BaseData objects.
Read and write MultiLabelSegmentation objects as DICOM Segmentation files.
mitk::MultiLabelSegmentation InputType
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Read DICOM segmentation objects from the file system.
void Write() override
Write the MultiLabelSegmentation as a DICOM Segmentation file.
itk::Image< unsigned short, 3 > itkInputImageType
itk::Image< short, 3 > itkInternalImageType
ConfidenceLevel GetWriterConfidenceLevel() const override
Return the confidence level for writing the given data as a DICOM segmentation.
DICOMSegmentationIO()
Default constructor. Registers reader/writer for the DICOM Segmentation MIME type.
ConfidenceLevel GetReaderConfidenceLevel() const override
Return the confidence level for reading the given file as a DICOM segmentation.
A data structure describing a label in a multi-label segmentation.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Find image slices visible on a given plane.
ConfidenceLevel
A confidence level describing the reader's or writer's ability to handle the given data or file forma...