42class DicomSEGSaveAddOnPointers;
125 bool determineImagePixelMax);
Project global and OS specific declarations.
#define MLDICOMOUTPUTS_EXPORT
DLL export macro definition.
Class to manage a binary image.
static void _addAndSetFractionalSEGPixelDataTag(DCMTree::TreePtr resultTree, PagedImage &inputPagedImage, bool determineImagePixelMax)
ImageVector _getExtentOfSegmentationBase() const
ML_MODULE_CLASS_HEADER(DicomSEGSave)
Implements interface for the runtime type system of the ML.
void activateAttachments() override
EnhancedMFSEGObjectInfos _inheritedSEGInfos
Inherited information needed to fill SEG specific tags in result tree.
std::string _setSEGIODTags(DCMTree::TreePtr resultTree, PagedImage &inputPagedImage, const BitImage &inputBitImage)
EnumField * _compressionFld
Selector for supported lossless compressions.
std::string _setUpTreeContent() override
virtual ~DicomSEGSave()
Destructor.
void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree) override
Overloads base class field inheritance and adds the additional tags needed by this class.
static const char *const SEGSaveDerivationModeStrings[NumSEGSaveDerivationModes]
String representations for the SEGSaveDerivationModes.
BoolField * _populateSourceImageSequenceFld
True fills Source image Sequence in Derivation Image Sequence with values, otherwise it's left empty.
BoolField * _savePaddedPixelDataFld
true writes padded frame data, false unpadded recommended).
BaseField * _inputBitImageFld
Input connector for a BitImage to be saved directly.
SEGFSaveDerivationModes
Modes in which way the exported file will be related to the other DICOM objects.
@ Automatic
Automatically selects one the the other SegSaveDerivationModes.
@ OnlyFrameOfReference
The exported files are created with the Frame of Reference information.
@ DerivationImageAndFrameOfReference
@ OnlyDerivationImage
The exported files are created with the Derivation Image Functional Group.
void _addDerivationImageFunctionalGroupTagsIfEnabled(DCMTree::TreePtr dcmTree)
Add Derivation Image Functional Group if enabled in _segSaveDerivationModeFld. May throw DCMTree::Exc...
@ NumSEGSaveDerivationModes
void _setUpCompression(DCMTree::TreePtr resultTree)
Add tags configuring the compression scheme.
std::string _checkConsistency() const override
EnumField * _segSaveDerivationModeFld
Determines how the exported file is related to other DICOM objects.
_FieldAddOnListType _fieldAddOnList
Container which handles all internally used DicomModifyFieldAddOns.
void _updateInputState() override
Overwrites base class and sets up additional stuff in commonInstanceReferenceModuleTags.
DicomSEGSave()
Constructor.
const _FieldAddOnListType & getFieldAddOnList() const
Allow constant access to fieldAddOnList, especially for testing purposes.
void handleNotification(Field *field) override
Handles field changes of the field field.
DicomSaveBase(int numInputs=1, int numOutputs=0)
Constructor, currently 0-3 input images are allowed to be set by derived modules.
Header file of a class managing many DicomModifFieldAddOns to simplify usage of multiple AddOns.
Header file for the ML module base class DicomSaveBase.
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
DicomModifyFieldAddOnList< DicomModifyFieldAddOnBase, DicomSEGSaveAddOnPointers * > _FieldAddOnListType
Container type which handles all internally used DicomModifyFieldAddOns.
TImageVector< MLint > ImageVector
Defines the standard ImageVector type that is used by the ML for indexing and coordinates.