DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
Class representing an object of the "Enhanced CT SOP Class". More...
Classes | |
class | Frames |
Inner class that offers typed interface to bulk data. More... | |
Public Types | |
typedef OFvariant< OFCondition, Frames< Uint16 >, Frames< Sint16 > > | FramesType |
Frames can contain Uint16, Sint16 or nothing (i.e. error condition) at all (in that case OFCondition denotes a corresponding error) | |
![]() | |
typedef DcmIODImage | IODImage |
typedef for old compilers that do not define the type 'DcmIODImage' in derived classes. | |
typedef IODImagePixelVariant< OFVARIADIC_TEMPLATE_PARAMETER_PACK(T)> | IODImagePixelModuleType |
A good comment would be nice, but I have nothing in mind. | |
Public Member Functions | |
virtual | ~EctEnhancedCT () |
Destructor, frees memory. | |
OFCondition | saveFile (const OFString &filename, const E_TransferSyntax writeXfer=EXS_LittleEndianExplicit) |
Save current object to given filename. More... | |
OFCondition | writeDataset (DcmItem &dataset) |
Write current object to given item. More... | |
OFCondition | writeConcatenation (ConcatenationCreator &cc) |
Write current object to a Concatenation. More... | |
virtual void | setCheckFGOnWrite (const OFBool doCheck) |
If enabled, functional group structure is checked before actual writing is performed in the write() method. More... | |
virtual OFBool | getCheckFGOnWrite () |
Returns whether functional group structure is checked before actual writing is performed in the write() method. More... | |
size_t | getNumberOfFrames () const |
Get number of frames, based on the number of items in the shared functional functional groups sequence (i.e. the attribute Number of Frames) is not trusted). More... | |
virtual OFBool | check (const OFBool checkFGStructure=OFTrue) |
Perform some basic checking. More... | |
virtual FGInterface & | getFunctionalGroups () |
Get access to functional groups. More... | |
virtual IODMultiFrameFGModule::ConcatenationInfo & | getConcatenationInfo () |
Get reference t Concatenation information. More... | |
virtual OFCondition | addForAllFrames (const FGBase &group) |
Add a functional group for all frames. More... | |
virtual IODMultiframeDimensionModule & | getDimensions () |
Return reference to multi-fame dimension module. More... | |
virtual FramesType | getFrames () |
Return Frames. More... | |
virtual OFCondition | importFromSourceImage (DcmItem &dataset, const OFBool takeOverCharset=OFTrue) |
Import Patient, Study, and Frame of Reference level information from the given item. More... | |
virtual OFCondition | importFromSourceImage (const OFString &filename, const OFBool takeOverCharset=OFTrue) |
Import Patient, Study, and Frame of Reference level information from the given item. More... | |
virtual IODPatientModule & | getIODPatientModule () |
Get Patient Module. More... | |
virtual IODGeneralStudyModule & | getIODGeneralStudyModule () |
Get General Study Module. More... | |
virtual IODPatientStudyModule & | getIODPatientStudyModule () |
Get Patient Study Module. More... | |
virtual IODGeneralSeriesModule & | getIODGeneralSeriesModule () |
Get General Series Module. More... | |
virtual IODFoRModule & | getIODFrameOfReferenceModule () |
Get Frame of Reference Module. More... | |
virtual IODSynchronizationModule & | getIODSynchronizationModule () |
Get Synchronization Module. More... | |
virtual void | setIODSynchronisationModuleEnabled (const OFBool enabled) |
Set whether Synchronization Module will be enabled when writing the Enhanced CT object. More... | |
virtual OFBool | getIODSynchronisationModuleEnabled () |
Returns whether Synchronization Module is enabled for writing the Enhanced CT object. More... | |
virtual IODGeneralEquipmentModule & | getIODGeneralEquipmentModule () |
Get General Equipment Module. More... | |
virtual IODEnhGeneralEquipmentModule & | getIODEnhGeneralEquipmentModule () |
Get Enhanced General Equipment Module. More... | |
virtual IODMultiFrameFGModule & | getIODMultiFrameFGModule () |
Get Multi-frame Functional Groups Module. More... | |
virtual IODMultiframeDimensionModule & | getIODMultiframeDimensionModule () |
Get Multi-frame Dimension Module. More... | |
virtual IODAcquisitionContextModule & | getIODAcquisitionContextModule () |
Get Acquisition Context Module. More... | |
virtual IODCommonInstanceReferenceModule & | getIODCommonInstanceReferenceModule () |
Get Common Instance Reference Module. More... | |
virtual IODSOPCommonModule & | getIODSOPCommonModule () |
Get SOP Common Module. More... | |
virtual OFCondition | getImageType (OFString &value, const long pos) |
Get Image Type. More... | |
virtual OFCondition | getAcquisitionNumber (Sint32 &value, const unsigned long pos) |
Get Acquisition Number. More... | |
virtual OFCondition | getAcquisitionNumber (OFString &value, const long pos) |
Get Acquisition Number. More... | |
virtual OFCondition | getAcquisitionDateTime (OFString &value, const long pos) |
Get Acquisition DateTime. More... | |
virtual OFCondition | getAcquisitionDuration (Float64 &value, const unsigned long pos) |
Get Acquisition Duration. More... | |
virtual OFCondition | getAcquisitionDuration (OFString &value, const long pos) |
Get Acquisition Duration. More... | |
virtual OFCondition | getContentQualification (OFString &value, const long pos) |
Get Content Qualification. More... | |
virtual OFCondition | getImageComments (OFString &value, const long pos) |
Get Image Comments. More... | |
virtual OFCondition | getBurnedInAnnotation (OFString &value, const long pos) |
Get Burned In Annotation (if filled in correctly by creator, this should always be "NO"). More... | |
virtual OFCondition | getRecognizableVisualFeatures (OFString &value, const long pos) |
Get Recognizable Visual Features. More... | |
virtual OFCondition | getLossyImageCompression (OFString &value, const long pos) |
Get Lossy Image Compression. More... | |
virtual OFCondition | getLossyImageCompressionRatio (Float64 &value, const unsigned long pos) |
Get Lossy Image Compression Ratio. More... | |
virtual OFCondition | getLossyImageCompressionRatio (OFString &value, const long pos) |
Get Lossy Image Compression Ratio. More... | |
virtual OFCondition | getLossyImageCompressionMethod (OFString &value, const long pos) |
Get Lossy Image Compression Method. More... | |
virtual OFCondition | getPresentationLUTShape (OFString &value, const long pos) |
Get Presentation LUT Shape. More... | |
virtual OFCondition | getMultiEnergyCTAcquisition (OFString &value, const long pos) |
Get Multi-Energy CT Acquisition. More... | |
virtual OFCondition | getPixelPresentation (OFString &value, const long pos) |
Get Pixel Presentation. More... | |
virtual OFCondition | getVolumetricProperties (OFString &value, const long pos) |
Get Volumetric Properties. More... | |
virtual OFCondition | getVolumeBasedCalculationTechnique (OFString &value, const long pos) |
Get Volume Based Calculation Technique. More... | |
virtual OFCondition | getIsocenterPosition (OFString &value, const long pos) |
Get Isocenter Position. More... | |
virtual OFCondition | getIsocenterPosition (OFVector< Float64 > &values) |
Get Isocenter Position. More... | |
virtual OFCondition | getRows (Uint16 &rows) |
Get number of rows. More... | |
virtual OFCondition | getColumns (Uint16 &cols) |
Get number of cols. More... | |
virtual OFCondition | setLossyImageCompression (const OFBool isLossy, const OFString &ratios="", const OFString &methods="", const OFBool check=OFTrue) |
Set lossy compression flag of the image to "00" or "01" If set to "01", ratios and methods have to be provided, too. More... | |
virtual OFCondition | setISOCenterPosition (const OFVector< Float64 > &values, const OFBool check=OFTrue) |
Set Isocenter Position. More... | |
virtual OFCondition | setISOCenterPosition (const OFString &value, const OFBool check=OFTrue) |
Set Isocenter Position. More... | |
virtual OFCondition | setMultiEnergyCTAcquisition (const OFString &value, const OFBool check=OFTrue) |
Set Multi-Energy CT Acquisition. More... | |
virtual OFCondition | setPixelPresentation (const EctTypes::E_PixelPresentation value, const OFBool check=OFTrue) |
Set Pixel Presentation. More... | |
virtual OFCondition | setVolumetricProperties (const EctTypes::E_VolumetricProperties value, const OFBool check=OFTrue) |
Set Volumetric Properties. More... | |
virtual OFCondition | setVolumeBasedCalculationTechnique (const OFString &value, const OFBool check=OFTrue) |
Set Volume Based Calculation Technique. More... | |
![]() | |
DcmIODImage () | |
Constructor, creates new DcmIODImage instance with integer-based pixel data. | |
DcmIODImage (OFin_place_type_t(ImagePixel)) | |
Constructor, constructs new DcmIODImage instance with integer, float or double based Image Pixel Module (i. More... | |
virtual | ~DcmIODImage () |
Virtual Destructor. | |
IODGeneralImageModule & | getGeneralImage () |
Get General Image Module. More... | |
IODImagePixelModuleType & | getImagePixel () |
Get Image Pixel Module (variant) More... | |
virtual void | clearData () |
Clear (removes) all attributes handled by the modules of this IOD. More... | |
![]() | |
DcmIODCommon () | |
Constructor. | |
DcmIODCommon (const DcmIODCommon &rhs) | |
Copy Constructor. More... | |
OFshared_ptr< IODRules > | getRules () |
Get rules handled by this IOD. More... | |
OFshared_ptr< DcmItem > | getData () |
Get item managed by this IOD. More... | |
IODPatientModule & | getPatient () |
Get Patient Module. More... | |
IODPatientStudyModule & | getPatientStudy () |
Get Patient Study Module. More... | |
IODGeneralStudyModule & | getStudy () |
Get General Study Module. More... | |
IODGeneralEquipmentModule & | getEquipment () |
Get General Equipment Module. More... | |
IODGeneralSeriesModule & | getSeries () |
Get Series Module. More... | |
IODFoRModule & | getFrameOfReference () |
Get Frame of Reference Module. More... | |
IODSOPCommonModule & | getSOPCommon () |
Get SOP Common Module. More... | |
IODCommonInstanceReferenceModule & | getCommonInstanceReference () |
Get Common Instance Reference Module. More... | |
virtual | ~DcmIODCommon () |
Destructor. | |
virtual void | createNewStudy (const OFBool clearEquipment=OFTrue) |
Create new study. More... | |
virtual void | createNewSeries (const OFBool clearFoR=OFTrue) |
Create a new series. More... | |
virtual void | createNewSOPInstance () |
Create a new SOP instance. More... | |
virtual void | ensureInstanceUIDs (const OFBool correctInvalid=OFFalse) |
Make sure that the IOD contains a SOP Instance, Series Instance and Study Instance UID. More... | |
virtual OFCondition | importHierarchy (DcmItem &dataset, const OFBool readPatient, const OFBool readStudy, const OFBool readFoR=OFFalse, const OFBool readSeries=OFFalse, const OFBool takeOverCharset=OFTrue) |
Import common module attributes from dataset but only read Patient, Study, Series and/or Frame of Reference level portions. More... | |
virtual OFCondition | importHierarchy (const OFString &filename, const OFBool readPatient, const OFBool readStudy, const OFBool readFoR=OFFalse, const OFBool readSeries=OFFalse, const OFBool takeOverCharset=OFTrue) |
CAUTION: Parameter order (readFoR and readSeries) changed compared to the old import() function. More... | |
Static Public Member Functions | |
static OFCondition | loadFile (const OFString &filename, EctEnhancedCT *&ct) |
Static method to load a Enhanced CT object from a file. More... | |
static OFCondition | loadDataset (DcmDataset &dataset, EctEnhancedCT *&ct) |
Static method to load a Enhanced CT object from a dataset object. More... | |
static OFCondition | loadConcatenation (ConcatenationLoader &cl, const OFString &concatenationUID, EctEnhancedCT *&ct) |
Static method to load a concatenation of a DICOM Enhanced CT instance into a EctEnhancedCT object. More... | |
static OFCondition | create (EctEnhancedCT *&ct, const Uint16 rows, const Uint16 columns, const OFBool signedPixelData, const EctTypes::E_ImageType1 imageType1, const OFString &imageType3, const OFString &imageType4, const OFString &instanceNumber, const EctTypes::E_ContentQualification contentQualification, const EctTypes::E_PixelPresentation pixelPresentation, const EctTypes::E_VolumetricProperties volumetricProperties, const OFString &volumeBasedCalculationTechnique, const IODEnhGeneralEquipmentModule::EquipmentInfo &equipmentInfo, const OFString &acquisitionDateTime="", const Float64 &acquisitionDuration=-1.0) |
Factory method to create an Enhanced CT object from the minimal set of information required. More... | |
Protected Member Functions | |
template<typename ImagePixel > | |
EctEnhancedCT (OFin_place_type_t(ImagePixel)) | |
Protected default constructor. More... | |
virtual OFCondition | read (DcmItem &dataset) |
Overwrites and publicly hides DcmIODImage::read() More... | |
virtual OFCondition | write (DcmItem &dataset) |
Overwrites and publicly hides DcmIODImage::write() More... | |
virtual OFCondition | writeGeneric (DcmItem &dataset) |
Writes pixel data to item. More... | |
virtual OFCondition | readGeneric (DcmItem &dataset) |
Read Enhanced CT's generic (not directly pixel-data related) attributes from DICOM dataset. More... | |
virtual IODGeneralImageModule & | getGeneralImage () |
General Image Module is not allowed in Enhanced CT, remove from public interface. More... | |
Static Private Member Functions | |
static OFCondition | decompress (DcmDataset &dset) |
Decompress the given dataset. More... | |
Private Attributes | |
IODSynchronizationModule | m_SynchronisationModule |
Synchronization Module. | |
OFBool | m_SynchronisationModuleEnabled |
Denote whether Synchronization Module is enabled (OFTrue) or ignored (OFFalse) on writing and checking. | |
IODEnhGeneralEquipmentModule | m_EnhancedGeneralEquipmentModule |
IODEnhancedEquipmentModule. | |
IODMultiFrameFGModule | m_FG |
Multi-frame Functional Groups module. | |
IODMultiframeDimensionModule | m_DimensionModule |
Multi-frame Dimension Module. | |
IODAcquisitionContextModule | m_AcquisitionContextModule |
Acquisition Context Module. | |
IODCommonInstanceReferenceModule | m_CommonInstanceReferenceModule |
Common Instance Reference Module. | |
OFVector< DcmIODTypes::Frame * > | m_Frames |
Binary frame data. | |
FGInterface | m_FGInterface |
Multi-frame Functional Groups high level interface. | |
DcmCodeString | m_ImageType |
Image Type: (CS, VM 4, Type 1) | |
DcmIntegerString | m_InstanceNumber |
Instance Number: (IS, VM 1, Type 1) | |
DcmCodeString | m_MultiEnergyCTAcquisition |
Multi-Energy CT Acquisition: (CS VM 1, Type 3) | |
DcmCodeString | m_PixelPresentation |
Pixel Presentation: (CS, VM 1, Type 1) | |
DcmCodeString | m_VolumetricProperties |
Volumetric Properties: (CS, VM 1, Type 1) | |
DcmCodeString | m_VolumeBasedCalculationTechnique |
Volume Based Calculation Technique: (CS, VM 1, Type 1) | |
DcmIntegerString | m_AcquisitionNumber |
Acquisition Number: (IS, VM 1, Type 3) | |
DcmDateTime | m_AcquisitionDateTime |
Acquisition DateTime: (DT, VM 1, Type 1C) | |
DcmFloatingPointDouble | m_AcquisitionDuration |
Acquisition Duration: (FD, VM 1, Type 1C) | |
DcmCodeString | m_ContentQualification |
Content Qualification: (CS, VM 1, Type 1C) | |
DcmLongText | m_ImageComments |
Image Comments: (LT, VM 1, Type 3) | |
DcmCodeString | m_BurnedInAnnotation |
Burned In Annotation: (CS, VM 1, Type 1C) | |
DcmCodeString | m_RecognizableVisualFeatures |
Recognizable Visual Features: (CS, VM 1, Type 3) | |
DcmCodeString | m_LossyImageCompression |
Lossy Image Compression: (CS, VM 1, Type 1C) | |
DcmDecimalString | m_LossyImageCompressionRatio |
Lossy Image Compression Ratio: (DS, VM 1, Type 1C) | |
DcmCodeString | m_LossyImageCompressionMethod |
Lossy Image Compression Method: (CS, VM 1, Type 1C) | |
DcmCodeString | m_PresentationLUTShape |
Presentation LUT Shape: (CS, VM 1, Type 1) | |
DcmDecimalString | m_IsoCenterPosition |
Isocenter Position: (DS, VM 3, Type 3) | |
Class representing an object of the "Enhanced CT SOP Class".
Supported Modules:
Modules that are not supported:
|
protected |
Protected default constructor.
Library users should the factory create..() method in order to create an object from scratch
|
virtual |
Add a functional group for all frames.
group | The group to be added as shared functional group. The |
|
virtual |
Perform some basic checking.
This method is also invoked when writing the object to a DICOM dataset or file.
checkFGStructure | If OFTrue (default), structure of functional groups is checked, too. |
|
static |
Factory method to create an Enhanced CT object from the minimal set of information required.
The actual frame data is added separately. The memory of the resulting Enhanced CT object has to be freed by the caller.
ct | The resulting Enhanced CT object if provided data is valid. Otherwise NULL is returned. |
rows | Number of rows of Enhanced CT frame data |
columns | Number of rows of Enhanced CT frame data |
signedPixelData | Denotes if pixel data is signed (OFTrue, Sint16) or unsigned (OFFalse, Uint16) |
imageType1 | First value for tag Image Type (0008,0008) |
imageType3 | Third Value for tag Image Type (0008,0008). See EctTypes::DT_ImageType3_... for Defined Terms. |
imageType4 | Fourth Value for tag Image Type (0008,0008). See EctTypes::DT_ImageType4_... for Defined Terms. |
instanceNumber | The value for tag Instance Number (0020,0013). |
contentQualification | The value for tag Content Qualification (0018,9004). |
pixelPresentation | The value for tag Pixel Presentation (0008,9205). |
volumetricProperties | The value for tag Volumetric Properties (0008,9206). |
volumeBasedCalculationTechnique | The value for tag Volume Based Calculation Technique (0008,9207). |
equipmentInfo | Equipment that is responsible for creating the EctEnhancedCT |
acquisitionDateTime | The date/time when the acquisition of data started. Required if value 1 of Image Type is is ORIGINAL or MIXED; may be present otherwise. If empty, value will not be set (default) |
acquisitionDuration | The time in seconds needed to complete the acquisition of data. Required if value 1 of Image Type is is ORIGINAL or MIXED; may be present otherwise. If negative, value will not be set (default) |
|
staticprivate |
Decompress the given dataset.
dset | The dataset to be decompressed |
|
virtual |
Get Acquisition DateTime.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Acquisition Duration.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm) |
|
virtual |
Get Acquisition Duration.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Acquisition Number.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Acquisition Number.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm) |
|
virtual |
Get Burned In Annotation (if filled in correctly by creator, this should always be "NO").
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Returns whether functional group structure is checked before actual writing is performed in the write() method.
|
virtual |
Get number of cols.
cols | The number of columns (output) |
|
virtual |
Get reference t Concatenation information.
|
virtual |
Get Content Qualification.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Return reference to multi-fame dimension module.
|
virtual |
Return Frames.
|
virtual |
Get access to functional groups.
This is meant for reading data from functional groups that are not actively managed, i.e. made accessible by EctEnhancedCT. In rare cases, however, it makes sense to access it for writing too, e.g. in order to add Stacks; use with care!
|
inlineprotectedvirtual |
General Image Module is not allowed in Enhanced CT, remove from public interface.
References DcmIODImage<>::getGeneralImage().
|
virtual |
Get Image Comments.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Image Type.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Acquisition Context Module.
|
virtual |
Get Common Instance Reference Module.
|
virtual |
Get Enhanced General Equipment Module.
|
virtual |
Get Frame of Reference Module.
|
virtual |
Get General Equipment Module.
|
virtual |
Get General Series Module.
|
virtual |
Get General Study Module.
|
virtual |
Get Multi-frame Dimension Module.
|
virtual |
Get Multi-frame Functional Groups Module.
|
virtual |
Get Patient Module.
|
virtual |
Get Patient Study Module.
|
virtual |
Get SOP Common Module.
|
virtual |
Returns whether Synchronization Module is enabled for writing the Enhanced CT object.
|
virtual |
Get Synchronization Module.
|
virtual |
Get Isocenter Position.
value | Reference to variable that should hold the result. |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Isocenter Position.
values | Reference to variable that should hold the result. Should hold 3 values if not empty and filled correctly by the creator of the Enhanced CT object. |
|
virtual |
Get Lossy Image Compression.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Lossy Image Compression Method.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Lossy Image Compression Ratio.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm) |
|
virtual |
Get Lossy Image Compression Ratio.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Multi-Energy CT Acquisition.
value | Reference to variable that should hold the result. |
pos | Index of the value to get (0..vm-1), -1 for all components |
size_t EctEnhancedCT::getNumberOfFrames | ( | ) | const |
Get number of frames, based on the number of items in the shared functional functional groups sequence (i.e. the attribute Number of Frames) is not trusted).
|
virtual |
Get Pixel Presentation.
value | Reference to variable that should hold the result. |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Presentation LUT Shape.
value | Reference to variable that should hold the result. Should always return the value "IDENTITY" if creator filled in the value correctly. |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Recognizable Visual Features.
value | Reference to variable that should hold the result |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get number of rows.
rows | The number of rows (output) |
|
virtual |
Get Volume Based Calculation Technique.
value | Reference to variable that should hold the result. |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Volumetric Properties.
value | Reference to variable that should hold the result. |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Import Patient, Study, and Frame of Reference level information from the given item.
The method does only import Frame of Reference if Frame of Reference UID is found in the image (and no error is reported if not). The reason is that if the source images of the Enhanced CT do have an FoR, the Enhanced CT object must have the same one, so we must import it. If the images do not have an FoR, we must not try at all importing it. The current content of this object is not deleted before reading. If the log stream is set and valid the, the reason for any error might be obtained from the error/warning output.
filename | Reference to DICOM dataset from which the document should be read |
takeOverCharset | If OFTrue (default), Specific Character Set is taken over from imported dataset. If it's not present or empty (invalid), the attribute will not be present in this class either. |
|
virtual |
Import Patient, Study, and Frame of Reference level information from the given item.
The method does only import Frame of Reference if Frame of Reference (FoR) UID is found in the image (and no error is reported if not). The reason is that if the source images of the Enhanced CT do have an FoR, the Enhanced CT object must have the same one, so we must import it. If the images do not have an FoR, we must not try at all importing it. If the log stream is set and valid the, the reason for any error might be obtained from the error/warning output.
dataset | Reference to DICOM dataset from which the document should be read |
takeOverCharset | If OFTrue (default), Specific Character Set is taken over from imported dataset. If it's not present or empty (invalid), the attribute will not be present in this class either. |
|
static |
Static method to load a concatenation of a DICOM Enhanced CT instance into a EctEnhancedCT object.
cl | The ConcatenationLoader instance to be used. Must be configured so that load() can be called. |
concatenationUID | The Concatenation UID identifying the Concatenation within the Concatenations know to ConcatenationLoader cl. |
ct | The resulting Enhanced CT object, if loading was successful |
|
static |
Static method to load a Enhanced CT object from a dataset object.
The memory of the resulting Enhanced CT object has to be freed by the caller.
dataset | The dataset to read from |
ct | The resulting Enhanced CT object. NULL if dataset could not be read successfully. |
|
static |
Static method to load a Enhanced CT object from a file.
The memory of the resulting Enhanced CT object has to be freed by the caller.
filename | The file to read from |
ct | The resulting Enhanced CT object. NULL if dataset could not be read successfully. |
|
protectedvirtual |
Overwrites and publicly hides DcmIODImage::read()
dataset | The dataset to read from |
Reimplemented from DcmIODImage< IODImagePixelModule< Uint16 >, IODImagePixelModule< Sint16 > >.
|
protectedvirtual |
Read Enhanced CT's generic (not directly pixel-data related) attributes from DICOM dataset.
dataset | Reference to DICOM dataset to read from. |
OFCondition EctEnhancedCT::saveFile | ( | const OFString & | filename, |
const E_TransferSyntax | writeXfer = EXS_LittleEndianExplicit |
||
) |
Save current object to given filename.
filename | The file to write to |
writeXfer | The transfer syntax to be used |
|
virtual |
If enabled, functional group structure is checked before actual writing is performed in the write() method.
Checking might be time consuming on functional groups with many frames, though disabling might result in invalid functional group structures. Disabling should only be done if the user knows that the functional groups are valid, wants to to adapt the functional groups manually after calling write() or knows what he's doing otherwise.
Per default, checking is enabled.
doCheck | If OFTrue, checking will be performed. If OFFalse, no checks are performed. |
|
virtual |
Set whether Synchronization Module will be enabled when writing the Enhanced CT object.
enabled | If OFTrue, Synchronization Module will be written, otherwise not. |
|
virtual |
Set Isocenter Position.
value | Value that should be set |
check | If OFTrue, basic checks are performed whether the value is valid for this attribute |
|
virtual |
Set Isocenter Position.
values | Value that should be set |
check | If OFTrue, basic checks are performed whether the values are valid for this attribute |
|
virtual |
Set lossy compression flag of the image to "00" or "01" If set to "01", ratios and methods have to be provided, too.
isLossy | If OFTrue, Lossy Image Compression is set to "01", otherwise to "00". |
ratios | Compression ratios (separated by backslash) of the applied lossy compression steps. Only one value (and no backslash) if only one step was performed. The parameter is ignored if isLossy is OFFalse. |
methods | Methods (separated by backslash) of the applied lossy compression steps. Only one value (and no backslash) if only one step was performed. The parameter is ignored if isLossy is OFFalse. |
check | If OFTrue, the data provided is checked for validity |
|
virtual |
Set Multi-Energy CT Acquisition.
value | Value that should be set |
check | If OFTrue, basic checks are performed whether the value is valid for this attribute |
|
virtual |
Set Pixel Presentation.
value | Value that should be set |
check | Ignored in current implementation (enum value is always checked for validity). |
|
virtual |
Set Volume Based Calculation Technique.
value | Value that should be set |
check | If OFTrue, basic checks are performed whether the value is valid for this attribute |
|
virtual |
Set Volumetric Properties.
value | Value that should be set |
check | Ignored in current implementation (enum value is always checked for validity). |
|
protectedvirtual |
Overwrites and publicly hides DcmIODImage::write()
dataset | The dataset to write to |
Reimplemented from DcmIODImage< IODImagePixelModule< Uint16 >, IODImagePixelModule< Sint16 > >.
OFCondition EctEnhancedCT::writeConcatenation | ( | ConcatenationCreator & | cc | ) |
Write current object to a Concatenation.
cc | The Concatenation Creator object to be used. Must be configured so that writeNextInstance() is ready to be called. |
OFCondition EctEnhancedCT::writeDataset | ( | DcmItem & | dataset | ) |
Write current object to given item.
dataset | The item to write to |
|
protectedvirtual |
Writes pixel data to item.
dataset | The dataset to write to |