Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// FIXME : what shall we do with VM = "2-n", "3-n", etc
if( strVM == "1-n" )
{
// make sure there is at least one ??? FIXME
// FIXME : what shall we do with VM = "2-n", "3-n", etc
if( strVM == "1-n" )
{
// make sure there is at least one ??? FIXME
// Problem : entry type may depend on the modality and/or the Sequence
// it's embedded in !
// (Get the information in the 'Conformance Statements' ...)
// Problem : entry type may depend on the modality and/or the Sequence
// it's embedded in !
// (Get the information in the 'Conformance Statements' ...)
return GetLength()/sizeof(uint16_t);
else if( vr == "UL" || vr == "SL" )
return GetLength()/sizeof(uint32_t);
return GetLength()/sizeof(uint16_t);
else if( vr == "UL" || vr == "SL" )
return GetLength()/sizeof(uint32_t);
else if( Global::GetVR()->IsVROfStringRepresentable(vr) )
{
// Some element in DICOM are allowed to be empty
else if( Global::GetVR()->IsVROfStringRepresentable(vr) )
{
// Some element in DICOM are allowed to be empty
uint16_t *data16 = (uint16_t *)data;
for(i=0;i<l/vrLgth;i++)
binary_write( *fp, data16[i]);
uint16_t *data16 = (uint16_t *)data;
for(i=0;i<l/vrLgth;i++)
binary_write( *fp, data16[i]);