From 9bc08a72beb8acf114c306262e06386e75f7b967 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 22 Sep 2004 13:36:36 +0000 Subject: [PATCH] add a v(ideo inv) option to TestWrite -Special Hector Duque- --- Example/TestCopyDicom.cxx | 2 ++ Example/TestWrite.cxx | 22 ++++++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Example/TestCopyDicom.cxx b/Example/TestCopyDicom.cxx index f0f7c233..bfc92b8a 100644 --- a/Example/TestCopyDicom.cxx +++ b/Example/TestCopyDicom.cxx @@ -47,6 +47,8 @@ int main(int argc, char* argv[]) return 1; } +// don't modify identation in order to let this source xdiffable with ../Test + std::string filename = argv[1]; std::string output = argv[2]; diff --git a/Example/TestWrite.cxx b/Example/TestWrite.cxx index bbdf452f..5e58ac2d 100644 --- a/Example/TestWrite.cxx +++ b/Example/TestWrite.cxx @@ -19,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; } /* @@ -132,6 +134,22 @@ int main(int argc, char* argv[]) f1->WriteRawData(zozo); break; + case 'v' : + + if ( f1->GetHeader()->GetBitsStored() == 8) + for (int i=0; iWriteDcmImplVR(zozo); + break; + } return 0; } -- 2.48.1