X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FWriteDicomSimple.cxx;h=874194a04821b38c4a8110bd48a58a91d8d7d03a;hb=6a7113502bc94c39a4dad73df086351f5390a1ef;hp=f5b4e273d29058f53daa67f706be7d19c4634459;hpb=ce8913daafe02955368fd2f07e777e86824467cc;p=gdcm.git diff --git a/Example/WriteDicomSimple.cxx b/Example/WriteDicomSimple.cxx index f5b4e273..874194a0 100644 --- a/Example/WriteDicomSimple.cxx +++ b/Example/WriteDicomSimple.cxx @@ -3,8 +3,8 @@ 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 @@ -39,7 +39,7 @@ #define COLOR_WINDOW 256 #define COLOR_LEVEL 128 -int main(int argc, char* argv[]) +int main(int argc, char *argv[]) { if (argc < 3) { @@ -76,7 +76,7 @@ int main(int argc, char* argv[]) 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 @@ -117,7 +117,7 @@ int main(int argc, char* argv[]) { for(int c=0;c