X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Doc%2FWebsite%2FHowToUseGdcm.html;h=5ba8925a914616aa2766e04fa3eba1d826ac6ee1;hb=d0f6827609a499057f4bad725522060590af3d82;hp=de92c7be36f788fc14617c2a15b78fd041af468c;hpb=df5cb5c39354ff3eacc03059b71c97084944edd2;p=gdcm.git diff --git a/Doc/Website/HowToUseGdcm.html b/Doc/Website/HowToUseGdcm.html index de92c7be..5ba8925a 100755 --- a/Doc/Website/HowToUseGdcm.html +++ b/Doc/Website/HowToUseGdcm.html @@ -229,8 +229,7 @@ Probabely, you'll never have to deal with Sequences (hope so!). 1-1-1-1) Deal with the file header The first step is to load the file header : - - gdcm::File *f = new gdcm::File(); + gdcm::File *f = gdcm::File::New(); f->SetLoadMode(LD_NOSEQ); | depending on what f->SetLoadMode(LD_NOSHADOW); | you want *not* f->SetLoadMode(LD_NOSEQ | LD_NOSHADOW);| to load from the @@ -599,7 +598,7 @@ When user knows the files with same Serie UID have same sizes, same 'pixel' type, same color convention, ... the right way to proceed is as follow : - gdcm::SerieHelper *sh= new gdcm::SerieHelper(); + gdcm::SerieHelper *sh= gdcm::NewSerieHelper(); // if user wants *not* to load some parts of the file headers sh->SetLoadMode(yourLoadMode); @@ -910,33 +909,26 @@ vtkGdcmWriter::void SetContentTypeToUnmodifiedPixelsImage() * PrintFile - - Displays the header of any kind of ACR-NEMA/PAPYRUS/DICOM File - usage: PrintFile {filein=inputFileName|dirin=inputDirectoryName}[level=n] - [forceload=listOfElementsToForceLoad] - [4DLoc= ][dict= privateDirectory] - [ { [noshadowseq] | [noshadow][noseq] } ] - [debug] [warning] + + Display the header of a ACR-NEMA/PAPYRUS/DICOM File + usage: PrintFile {filein=inputFileName|dirin=inputDirectoryName}[level=n] + [forceload=listOfElementsToForceLoad] [rec] [noex] + [4DLoc= ][dict= privateDirectory] + [ { [noshadowseq] | [noshadow][noseq] } ] + [debug] [warning] level = 0,1,2 : depending on the amount of details user wants to see + rec : user wants to parse recursively the directory + noex : user doen't want extra 'user friendly' info 4DLoc: group-elem(in hexa, no space) of the DataEntry holdind 4thDim listOfElementsToForceLoad : group-elem,g2-e2,... (in hexa, no space) - of Elements to load whatever their length - privateDirectory : source file full path name of Shadow Group elems - noshadowseq: user doesn't want to load Private Sequences - noshadow : user doesn't want to load Private groups (odd number) - noseq : user doesn't want to load Sequences - debug : user wants to run the program in 'debug mode' - warning : user wants to be warned about any oddity in the File - showlut :user wants to display the Palette Color (as an int array) - - [ { [noshadowseq] | [noshadow][noseq] } ] [debug] [usage] - level = 0,1,2 : depending on the amount of details user wants to see - noshadowseq: user doesn't want to load Private Sequences - noshadow : user doesn't want to load Private groups (odd number) - noseq : user doesn't want to load Sequences - debug : user wants to run the program in 'debug mode' - usage : user wants to display usage - + of Elements to load whatever their length + privateDirectory : source file full path name of Shadow Group elems + noshadowseq: user doesn't want to load Private Sequences + noshadow : user doesn't want to load Private groups (odd number) + noseq : user doesn't want to load Sequences + debug : user wants to run the program in 'debug mode' + warning : user wants to be warned about any oddity in the File + showlut :user wants to display the Palette Color (as an int array) * Anonymize @@ -971,40 +963,28 @@ vtkGdcmWriter::void SetContentTypeToUnmodifiedPixelsImage() * ReWrite - Reads and rewrites a full gdcm-readable Dicom image - (usefull when the file header is not very straight). - - usage: ReWrite filein=inputFileName fileout=outputFileName - [keepoverlays] [mode=write mode] [monochrome1] - [noshadow] [noseq][debug] - --> The following line to 'rubout' a burnt-in Patient name - [rubout=xBegin,xEnd,yBegin,yEnd [ruboutvalue=n (<255)] ] - --> The 2 following lines, to extract a sub image within some frames - [ROI=xBegin,xEnd,yBegin,yEnd] - [firstframe=beg] [lastframe=end] - - mode = a (ACR), x (Explicit VR Dicom), r (RAW : only pixels) - j (jpeg lossless), 2 (jpeg2000) - keepoverlays : user wants to keep ACR-NEMA-like overlays - monochrome1 = user wants MONOCHROME1 photom. interp. (0=white) - noshadowseq: user doesn't want to load Private Sequences + Re write a full gdcm-readable Dicom image + (usefull when the file header is not very straight). + + usage: ReWrite filein=inputFileName fileout=outputFileName + [keepoverlays] [mode=write mode] [monochrome1] + [noshadow] [noseq][debug] + --> The following line to 'rubout' a burnt-in Patient name + [rubout=xBegin,xEnd,yBegin,yEnd [ruboutvalue=n (<255)] ] + --> The 2 following lines, to extract a sub image within some frames + [ROI=xBegin,xEnd,yBegin,yEnd] + [firstframe=beg] [lastframe=end] + + mode = a (ACR), x (Explicit VR Dicom), r (RAW : only pixels) + j (jpeg lossless), 2 (jpeg2000) + keepoverlays : user wants to keep ACR-NEMA-like overlays + monochrome1 = user wants MONOCHROME1 photom. interp. (0=white) + noshadowseq: user doesn't want to load Private Sequences noshadow : user doesn't want to load Private groups (odd number) - noseq : user doesn't want to load Sequences - rgb : user wants to transform LUT (if any) to RGB pixels + noseq : user doesn't want to load Sequences + rgb : user wants to transform LUT (if any) to RGB pixels warning : developper wants to run the program in 'warning mode' - debug : developper wants to run the program in 'debug mode' a full gdcm-readable Dicom image (compressed Pixels are expanded) - (usefull when the file is not very straight). - usage: ReWrite filein=inputFileName fileout=anonymizedFileName - [mode=write mode] [rgb] - [ { [noshadowseq] | [noshadow][noseq] } ] [debug] [usage] - write mode = a (ACR), x (Explicit VR Dicom), r (RAW : only pixels) - rgb : user wants to transform LUT (if any) into RGB - noshadowseq: user doesn't want to load Private Sequences - noshadow : user doesn't want to load Private groups (odd number) - noseq : user doesn't want to load Sequences - debug : user wants to run the program in 'debug mode' - usage : user wants to display usage - + debug : developper wants to run the program in 'debug mode' * PrintDicomDir @@ -1078,5 +1058,33 @@ vtkGdcmWriter::void SetContentTypeToUnmodifiedPixelsImage() usage : user wants to display usage + * exXCoherentFileSet : + +Shows the various 'XCoherent' Filesets within a directory +Optionaly copies the images in a Directories tree +usage: exXCoherentFileSet {dirin=inputDirectoryName} + dirout=outputDirectoryName + { tag=group-elem | pos | ori } [sort] [write] + [ { [noshadowseq] | [noshadow][noseq] } ] [debug] + + dirin : user wants to analyze *all* the files + within the directory + write : user wants to create directories + dirout : will be created if doesn't exist + pos : user wants to split each Single SerieUID Fileset on the + 'Image Position ' + ori : user wants to split each Single SerieUID Fileset on the + 'Image Orientation ' + tag : group-elem (in hexa, no space) + the user wants to split on + sort : user wants FileHelper to sort the images + Warning : will probabely crah if sort has no meaning + (not only look at image names) + noshadowseq: user doesn't want to load Private Sequences + noshadow : user doesn't want to load Private groups (odd number) + noseq : user doesn't want to load Sequences + verbose : user wants to run the program in 'verbose mode' + debug : developper wants to run the program in 'debug mode' + }}}