X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestWrite.cxx;h=5e58ac2d9404b14a27f70924dbd841e5173361da;hb=8bf45262260369e9f9f773c5793acb4924639cc1;hp=9673abf03387600ce14f32240cf69c1ba60f7f17;hpb=8fca7bc2830904113dbb5521c009775d964c5c98;p=gdcm.git diff --git a/Example/TestWrite.cxx b/Example/TestWrite.cxx index 9673abf0..5e58ac2d 100644 --- a/Example/TestWrite.cxx +++ b/Example/TestWrite.cxx @@ -1,9 +1,6 @@ #include -#include "gdcm.h" -#include "gdcmHeader.h" -#include "gdcmDocument.h" - #include +#include "gdcm.h" int main(int argc, char* argv[]) { @@ -22,9 +19,11 @@ int main(int argc, char* argv[]) std::cerr << "usage: " << std::endl << argv[0] << " fileName writtingMode " << std::endl - << "(a : ACR, d : DICOM Implicit VR," - << " x : DICOM Explicit VR r : RAW)" + << "(a : ACR, gives fileNamed : DICOM Implicit VR," + << " x : DICOM Explicit VR r : RAW," + << " v : explicit VR + computes the video inv image" << std::endl; + return 0; } /* @@ -49,8 +48,9 @@ int main(int argc, char* argv[]) toto = argv[1]; - e1 = new gdcmHeader(toto.c_str(), false, true); - if (!e1->IsReadable()) { + e1 = new gdcmHeader( toto.c_str() ); + if (!e1->IsReadable()) + { std::cerr << "Sorry, not a Readable DICOM / ACR File" <WriteRawData(zozo); break; + case 'v' : + + if ( f1->GetHeader()->GetBitsStored() == 8) + for (int i=0; iWriteDcmImplVR(zozo); + break; + } return 0; }