Program: gdcm
Module: $RCSfile: RawToDicom.cxx,v $
Language: C++
- Date: $Date: 2005/12/15 13:52:17 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/12/15 17:06:39 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
START_USAGE(usage)
" \n RawToDicom : \n ",
" Writes a Dicom file from a Raw File ",
- " usage: RawToDicom {filein=inputFileName|dirin=inputDirectoryName} ",
+ " usage: RawToDicom filein=inputFileName ",
" rows=nb of Rows, lines=nb of Lines, ",
" [frames = nb of Frames] //defaulted to 1 ",
" pixeltype={8U|8S|16U|16S} ",
char *inputFileName = am->ArgMgrGetString("filein",(char *)0);
char *outputFileName = am->ArgMgrGetString("fileout",(char *)0);
- char *dirName = am->ArgMgrGetString("dirin",(char *)0);
+ //char *dirName = am->ArgMgrGetString("dirin",(char *)0);
int nX = am->ArgMgrWantInt("rows", usage);
int nY = am->ArgMgrWantInt("lines", usage);
// ----------- End Arguments Manager ---------
-
// Read the Raw file
std::ifstream *Fp = new std::ifstream(inputFileName, std::ios::in | std::ios::binary);
}
std::string strPixelType(pixelType);
- int pixelLength;
int pixelSign;
int pixelSize;