I have been struggling to insert a sequence, but with an undefined length, into a data set.
The insertion of the sequence, as well as the insertion of all direct and indirect childs, is done correctly though.
But when I load the DICOM filed generated with Sante DICOM Hexadecimal Viewer I get this:
http://www.hostingpics.net/viewer.php?i ... eSaved.png
We can see that the Data Size property value is different from FFFFFFFF (that corresponds to the undefined length value -1) and that it has been automatically calculated.
Here is the code I use:
Code: Select all
dcmSQ = new DcmSequenceOfItems(DcmTag(DcmTagKey(group, element), DcmVR(EVR_SQ)), 0xFFFFFFFF);
OFCondition ret = item->insert(dcmSQ);
if (!ret.good())
{
delete dcmSQ;
return;
}
Here the result I'm looking for:
http://www.hostingpics.net/viewer.php?i ... Before.png
Thanks in advance !