Program: gdcm
Module: $RCSfile: gdcmBinEntry.cxx,v $
Language: C++
- Date: $Date: 2005/09/21 09:44:59 $
- Version: $Revision: 1.78 $
+ Date: $Date: 2005/10/11 08:55:58 $
+ Version: $Revision: 1.79 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// 8 Bits Pixels *are* OB, 16 Bits Pixels *are* OW
// -value forced while Reading process-
+
+ //-->
+ // -->
+ // --> WARNING
+ // --> the following lines *looked* very clever,
+ // --> but they don't work on big endian processors.
+ // --> since I've no access for the moment to a big endian proc :-(
+ // --> I comment them out, to see the result on the dash board
+ // -->
+ /*
if (GetGroup() == 0x7fe0 && GetVR() == "OW")
- {
+ {
uint16_t *binArea16 = (uint16_t*)binArea8;
binary_write (*fp, binArea16, lgr );
}
// For any other VR, BinEntry is re-written as-is
binary_write (*fp, binArea8, lgr );
}
+ */
+
+ //-->
+ // -->
+ // --> WARNING
+ // --> remove the following line, an uncomment the previous ones,
+ // --> if it doesn't work better
+ // -->
+ binary_write ( *fp, binArea8, lgr ); // Elem value
#else
binary_write ( *fp, binArea8, lgr ); // Elem value
#endif //GDCM_WORDS_BIGENDIAN