MeVisLab Toolbox Reference
mlDicomSegmentItemImage.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
6
11//----------------------------------------------------------------------------------
12
13#pragma once
14
17#include <mlSubImage.h>
18#include <mlBitImage.h>
19#include <FMEThirdPartyWarningsDisable.h>
20#include <boost/smart_ptr.hpp>
21#include <FMEThirdPartyWarningsRestore.h>
22
24
27template <typename SEGMENT_IMAGE_TYPE>
29 public:
32
34 typedef boost::shared_ptr<SEGMENT_IMAGE_TYPE> ItemImagePtr;
35
37 typedef boost::shared_ptr<const SEGMENT_IMAGE_TYPE> Const_ItemImagePtr;
38
42
44 inline ~DicomSegmentItemImage() override {}
45
47 inline std::string getImageType() const override;
48
50 inline void setImage(ItemImagePtr image) {
51 _image = image;
52 }
53
56 return _image;
57 }
58
61 return _image;
62 }
63
64 protected:
67};
68
70template<>
72{
73 return "SUBIMAGE";
74}
75
77template<>
79{
80 return "BITIMAGE";
81}
82
85
88
Project global and OS specific declarations.
Pure virtual base class describing an abstract image type to be read/written as DICOM SEG image as it...
Class describing one segment as it is described in the DICOM standard under SEGMENTATION IMAGE MODULE...
std::string getImageType() const override
Returns the type of the image as string, BINARY in this case.
ItemImagePtr _image
The Image instance itself.
ItemImagePtr getImage()
Returns the image.
~DicomSegmentItemImage() override
Default constructor creating an image.
DicomSegmentItemImage()
Default constructor creating an image.
SEGMENT_IMAGE_TYPE ImageType
Directly typedef to get image type.
boost::shared_ptr< const SEGMENT_IMAGE_TYPE > Const_ItemImagePtr
Typedef as boost shared constant SubImage pointer.
void setImage(ItemImagePtr image)
Returns the image.
Const_ItemImagePtr getConstantImage() const
Returns the constant image.
boost::shared_ptr< SEGMENT_IMAGE_TYPE > ItemImagePtr
Typedef as boost shared SubImage pointer.
Header file of pure virtual base class describing an abstract image type to be read/written as DICOM ...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.