It seems to me that with this method we set the "fileName" and later when we want to save it to a Dicom file it will read from a given "fileName". But I am not sure if I get it correctly.
This is the pseudo-code I use:
//create a DICOMobject ...
Code: Select all
DcmInputFileStream fileStream(fileName, offset);
DcmPixelData pixelData(DcmTag(TAG_PixelData.GetGroup(), TAG_PixelData.GetElement()), length);
pixelData.createValueFromTempFile(fileStream.newFactory(), length, byteOrder);
m_DcmDataSet->insert(&pixelData);
The result dose not seem to be Dicom valid. I would appreciate any hint.