From 5fd3624af732741c5e608085a294df0b497476eb Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 24 Aug 2006 13:05:50 +0000 Subject: [PATCH] Fix comments --- Example/exOverlaysDCM.cxx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Example/exOverlaysDCM.cxx b/Example/exOverlaysDCM.cxx index a6f84e89..b3371917 100755 --- a/Example/exOverlaysDCM.cxx +++ b/Example/exOverlaysDCM.cxx @@ -7,6 +7,8 @@ #include "gdcmArgMgr.h" #include +// Each BIT of Overlay Data (0x6000,0x3000) corresponds +// to a BYTE of overlay image. void explodeByte(unsigned char byte, unsigned char* result) { unsigned char mask = 1; @@ -25,11 +27,11 @@ void explodeByte(unsigned char byte, unsigned char* result) int main(int argc, char *argv[]) { START_USAGE(usage) - " \n exReadOverlays :\n ", - " Extract an overlay image from a secondary capture image ", + " \n exOverlaysDCM :\n ", + " Extract an overlay image from a DICOM image ", " Warning : probably segfaults if no overlay ", - " usage: WriteOverlayImage filein=inputFileName fileout=outputFileName[debug]", - " debug : user wants to run the program in 'debug mode' ", + " usage: exOverlaysDCM filein=inputFileName fileout=outputFileName [debug] ", + " debug : developper wants to run the program in 'debug mode' ", FINISH_USAGE // ----- Initialize Arguments Manager ------ @@ -119,7 +121,7 @@ int main(int argc, char *argv[]) unsigned int dimY= f->GetYSize(); unsigned int dimXY=dimX*dimY; - std::cout <<"DimX : "<< dimX <<" DimY : " << dimY + std::cout << "DimX : "<< dimX <<" DimY : " << dimY << " DimXY : " <InsertEntryString("MONOCHROME2 ",0x0028,0x0004, "LO"); + // feel free to add any field (Dicom Data Entry) you like, here. + // ... gdcm::FileHelper *fh = gdcm::FileHelper::New(f2); fh->SetImageData(outputData,dimXY); -- 2.48.1