From: jpr Date: Fri, 24 Sep 2004 11:45:08 +0000 (+0000) Subject: 'd' option (Implicit Dicom VR) removed from usage, because the (unused) X-Git-Tag: Version0.6.bp~158 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0edbae0b69424af845a81a9f12ed16cec719130b;p=gdcm.git 'd' option (Implicit Dicom VR) removed from usage, because the (unused) write method is knowed to be bugged for 'difficult' images --- diff --git a/Example/TestWrite.cxx b/Example/TestWrite.cxx index 5e58ac2d..1793b4d9 100644 --- a/Example/TestWrite.cxx +++ b/Example/TestWrite.cxx @@ -17,11 +17,12 @@ int main(int argc, char* argv[]) if (argc < 3) { std::cerr << "usage: " << std::endl - << argv[0] << " fileName writtingMode " + << argv[0] << " OriginalFileName writtingMode " << std::endl - << "(a : ACR, gives fileNamed : DICOM Implicit VR," - << " x : DICOM Explicit VR r : RAW," - << " v : explicit VR + computes the video inv image" + << "(a : ACR, produces a file named OriginalFileName.ACR" + << " x : DICOM Explicit VR, produces a file named OriginalFileName.XDCM" + << " r : RAW, produces a file named OriginalFileName.RAW" + << " v : explicit VR + computes the video inv image --> OriginalFileName.VDCM" << std::endl; return 0; @@ -107,7 +108,8 @@ int main(int argc, char* argv[]) f1->WriteAcr(zozo); break; - case 'd' : + case 'd' : // Not document in the 'usage', because the method is knowed to be bugged. + // ecriture d'un fichier DICOM Implicit VR // à partir d'un dcmHeader correct. @@ -136,19 +138,26 @@ int main(int argc, char* argv[]) case 'v' : - if ( f1->GetHeader()->GetBitsStored() == 8) - for (int i=0; iGetHeader()->GetBitsAllocated() == 8) + { + std::cout << "videoinv for 8 bits" << std::endl; + for (int i=0; iWriteDcmImplVR(zozo); - break; + } + sprintf(zozo, "%s.VDCM", toto.c_str()); + printf ("WriteDCM Explicit VR + VideoInv\n"); + f1->WriteDcmExplVR(zozo); + break; } return 0;