Program: gdcm
Module: $RCSfile: WriteDicomSimple.cxx,v $
Language: C++
- Date: $Date: 2005/01/25 15:44:22 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2005/04/20 11:25:35 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#define COLOR_WINDOW 256
#define COLOR_LEVEL 128
-int main(int argc, char* argv[])
+int main(int argc, char *argv[])
{
if (argc < 3)
{
header->InsertValEntry(str.str(),0x0028,0x0101); // Bits Stored
str.str("");
- str << COMPONENT_SIZE * 8 - 1;
+ str << ( COMPONENT_SIZE * 8 ) - 1;
header->InsertValEntry(str.str(),0x0028,0x0102); // High Bit
// Set the pixel representation
{
for(int c=0;c<COMPONENT;c++)
{
- *tmp = j;
+ *tmp = (unsigned char)j;
tmp += COMPONENT_SIZE;
}
}