FileDerivation class.
More...
#include <gdcmFileDerivation.h>
FileDerivation class.
See PS 3.16 - 2008 For the list of Code Value that can be used for in Derivation Code Sequence
URL: http://medical.nema.org/medical/dicom/2008/08_16pu.pdf
DICOM Part 16 has two Context Groups CID 7202 and CID 7203 which contain a set of codes defining reason for a source image reference (ie. reason code for referenced image sequence) and a coded description of the deriation applied to the new image data from the original. Both these context groups are extensible.
File Derivation is compulsory when creating a lossy derived image.
- Examples
- DeriveSeries.cxx, GenFakeImage.cxx, and ReformatFile.cs.
◆ FileDerivation()
| gdcm::FileDerivation::FileDerivation |
( |
| ) |
|
◆ ~FileDerivation()
| gdcm::FileDerivation::~FileDerivation |
( |
| ) |
|
◆ AddDerivationDescription()
| bool gdcm::FileDerivation::AddDerivationDescription |
( |
| ) |
|
|
protected |
◆ AddPurposeOfReferenceCodeSequence()
| bool gdcm::FileDerivation::AddPurposeOfReferenceCodeSequence |
( |
DataSet & |
ds | ) |
|
|
protected |
◆ AddReference()
| bool gdcm::FileDerivation::AddReference |
( |
const char * |
referencedsopclassuid, |
|
|
const char * |
referencedsopinstanceuid |
|
) |
| |
Create the proper reference. Need to pass the original SOP Class UID and the original SOP Instance UID, so that those value can be used as Reference.
- Warning
- referencedsopclassuid and referencedsopinstanceuid needs to be \0 padded. This is not compatible with how ByteValue->GetPointer works.
- Examples
- DeriveSeries.cxx, GenFakeImage.cxx, and ReformatFile.cs.
◆ AddSourceImageSequence()
| bool gdcm::FileDerivation::AddSourceImageSequence |
( |
| ) |
|
|
protected |
◆ Derive()
| bool gdcm::FileDerivation::Derive |
( |
| ) |
|
◆ GetFile() [1/2]
| File & gdcm::FileDerivation::GetFile |
( |
| ) |
|
|
inline |
◆ GetFile() [2/2]
| const File & gdcm::FileDerivation::GetFile |
( |
| ) |
const |
|
inline |
◆ SetAppendDerivationHistory()
| void gdcm::FileDerivation::SetAppendDerivationHistory |
( |
bool |
b | ) |
|
Specify if Derivation history should be appended (default false) When false, this is an error if input already has a derivation history When true, both Purpose of Reference Code Value and Derivation Code Sequence Code Value can have their history appended.
◆ SetDerivationCodeSequenceCodeValue()
| void gdcm::FileDerivation::SetDerivationCodeSequenceCodeValue |
( |
unsigned int |
codevalue | ) |
|
◆ SetDerivationDescription()
| void gdcm::FileDerivation::SetDerivationDescription |
( |
const char * |
dd | ) |
|
Specify the Derivation Description. Eg "lossy conversion".
◆ SetFile()
| void gdcm::FileDerivation::SetFile |
( |
const File & |
f | ) |
|
|
inline |
◆ SetPurposeOfReferenceCodeSequenceCodeValue()
| void gdcm::FileDerivation::SetPurposeOfReferenceCodeSequenceCodeValue |
( |
unsigned int |
codevalue | ) |
|
The documentation for this class was generated from the following file: