MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlMultiFileVolumeListSEGOutput.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
6
12
13//----------------------------------------------------------------------------------
14#pragma once
15
16// Base class of output module, already being a MultiFileVolumeListImageOutput.
18
20
21// Forward to internally used classes.
22class MultiFileVolume;
23class LUTFLinear;
24
25//----------------------------------------------------------------------------------
28//----------------------------------------------------------------------------------
30{
31public:
34
37
38protected:
39
41 void activateAttachments() override;
42
45
48
53 const size_t ssItemIdx,
54 std::string &status);
55
57 void _updateLUTOutput(const DCMTree::TreePtrVector &sequenceItems);
58
62
67
71 int outIndex,
72 SubImage *inSubImgs) override;
73
74private:
75
77 void _initializeFieldsAndMembers();
78
80 void _resetLoadedMembers();
81
83 StringField *_infoFld = nullptr;
84
85
86 // Top level segmentation tags:
88 StringField *_segmentationTypeFld = nullptr;
89
91 StringField *_segmentationFractionalTypeFld = nullptr;
92
94 StringField *_maximumFractionalValueFld = nullptr;
95
97 BoolField *_isValidFractionalSegmentationFld = nullptr;
98
100 StringField *_contentLabelFld = nullptr;
101
103 StringField *_contentDescriptionFld = nullptr;
104
106 StringField *_contentCreatorsNameFld = nullptr;
107
109 StringField *_derivationDescriptionFld = nullptr;
110
111
113 BoolField *_leaveUnMaskedVoxelsUnchangedFld = nullptr;
114
116 BoolField *_leaveMaskedVoxelsUnchangedFld = nullptr;
117
119 IntField *_unMaskedWriteValueFld = nullptr;
120
122 IntField *_maskedWriteValueFld = nullptr;
123
124
126 BoolField *_userSelectsSegmentsFld = nullptr;
127
129 IntField *_userSelectedSegmentFld = nullptr;
130
131
132 // Currently selected Segment:
134 IntField *_referencedSegmentNumberFld = nullptr;
135
137 IntField *_segmentNumberFld = nullptr;
138
140 StringField *_segmentLabelFld = nullptr;
141
143 StringField *_segmentDescriptionFld = nullptr;
144
146 StringField *_segmentAlgorithmTypeFld = nullptr;
147
149 StringField *_segmentAlgorithmNameFld = nullptr;
150
152 Vector3Field *_recommendedDisplayCIELabValueFld = nullptr;
153
155 ColorField *_rgbOutFld = nullptr;
156
159 BoolField *_rgbAndCIELabValueValidFld = nullptr;
160
162 IntField *_numSegmentsFld = nullptr;
163
165 BaseField *_outputCurrentSegmentTreeFld = nullptr;
166
168 BaseField *_outputLUTFld = nullptr;
169
172 std::shared_ptr<LUTFLinear> _outLUT = nullptr;
173
176 NotifyField *_updateSEGOutputInformationDoneFld = nullptr;
177
180};
181
183
#define MLDIRECTDICOMIMPORTOUTPUTS_EXPORT
DLL export macro definition.
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:813
Field to encapsulate a boolean value.
Definition mlFields.h:56
Field to encapsulate a vector of three float values representing an (RGB) color with all properties o...
Definition mlFields.h:1547
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate an integer value.
Definition mlFields.h:123
The ML module class MultiFileVolumeListImageOutput for extending the number of image outputs of Multi...
The ML module class MultiFileVolumeListSEGOutput providing an additional output for SEG DICOM files a...
void _updateVolumeInformation(MultiFileVolume *currVol) override
This is called by the super class if the volume has changed.
MultiFileVolumeListSEGOutput(int numInputs=0, int numOutputs=2)
Constructor.
void calculateOutputSubImage(SubImage *outSubImg, int outIndex, SubImage *inSubImgs) override
Bypasses the input subimages, possibly masked with might be active on that subimage according to curr...
void calculateOutputImageProperties(int outIndex, PagedImage *outImg) override
Sets properties of the output image at output outIndex according to the currently available segmentat...
void _updateLUTOutput(const DCMTree::TreePtrVector &sequenceItems)
Updates the look up table output of the module to the current segment list.
void activateAttachments() override
Called after changes of fields without handleNotification calls.
void _updateSegmentGUIFromSegmentItemTree(const DCMTree::TreePtrVector &sequenceItems, const size_t ssItemIdx, std::string &status)
Append item ssItemIdx of sequenceItems to the report string status, and if ssItemIdx is the currently...
void _validateUserSelectedSegment(const MLint numSegSequenceItems)
Makes _userSelectedSegmentFld valid according to numSegSequenceItems if numSegSequenceItems > 0.
~MultiFileVolumeListSEGOutput() override
Destructor.
void handleNotification(Field *field) override
Handles changes of fields.
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
Field without value for notifications.
Definition mlFields.h:687
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
Field to encapsulate a string value.
Definition mlFields.h:634
This class manages/represents a rectangular 6D image region that is organized linearly in memory.
Definition mlSubImage.h:75
Field to encapsulate a vector of three double values.
Definition mlFields.h:1164
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
The ML module class MultiFileVolumeListImageOutput for extending the number of image outputs of Multi...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition mlTypeDefs.h:489
std::vector< TreePtr > TreePtrVector
A vector of TreePtr - used for sequences.
Definition DCMTree_Lib.h:80