X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.cxx;h=1fe7118d0212689afde55489598082f654143e6f;hb=22075f2f8d1da63aaed511defa7f40e8f6a2edb5;hp=1e90cccb49650543aa4b9a35789e4d5adb3e3cd7;hpb=9a1c462c4bd36bd29efc949d74332f3e19bb9638;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 1e90cccb..1fe7118d 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/08/29 13:05:01 $ - Version: $Revision: 1.265 $ + Date: $Date: 2005/09/20 09:07:56 $ + Version: $Revision: 1.269 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,30 +38,53 @@ // in the images. // // Remember also : -// Patient Position (0018,5100) values : HFP = Head First-Prone -// HFS = Head First-Supine -// HFDR = Head First-Decubitus Right -// HFDL = Head First-Decubitus Left -// FFDR = Feet First-Decubitus Right -// FFDL = Feet First-Decubitus Left -// FFP = Feet First-Prone -// FFS = Feet First-Supine -// can also find SEMIERECT -// SUPINE +// Patient Position (0018,5100) values : + +// HFS = Head First-Supine, where increasing (positive axis direction) : +// X -> to the direction pointed to by the patient's oustretched left arm +// Y -> to the anterior-to-posterior direction in the patient's body +// Z -> to the feet-to-head direction in the patient's body + +// HFP = Head First-Prone, where increasing (positive axis direction) : +// X -> to the direction pointed to by the patient's oustretched left arm +// Y -> to the anterior-to-posterior direction in the patient's body +// Z -> to the feet-to-head direction in the patient's body + +// FFS = Feet First-Supine, where increasing (positive axis direction) : +// X -> to the direction pointed to by the patient's oustretched left arm +// Y -> to the anterior-to-posterion direction in the patient's body +// Z -> to the feet-to-head direction in the patient's body + +// FFP = Feet First-Prone, where increasing (positive axis direction) : +// X -> to the direction pointed to by the patient's oustretched left arm +// Y -> to the posterior-to-anterior direction in the patient's body +// Z -> to the feet-to-head direction in the patient's body + +// HFDR = Head First-Decubitus Right +// HFDL = Head First-Decubitus Left +// FFDR = Feet First-Decubitus Right +// FFDL = Feet First-Decubitus Left + +// we can also find + +// SEMIERECT +// SUPINE + // CS 2 Patient Orientation (0020 0020) -// When the coordinates of the image -// are always present, this field is almost never used. -// Better we don't tust it too much ... -// Found Values are : L\P -// L\FP -// P\F -// L\F -// P\FR -// R\F +// When the coordinates of the image +// are always present, this field is almost never used. +// Better we don't trust it too much ... +// Found Values are : +// L\P +// L\FP +// P\F +// L\F +// P\FR +// R\F // // (0020|0037) [Image Orientation (Patient)] [1\0\0\0\1\0 ] - + // --------------------------------------------------------------- // #include "gdcmFile.h" @@ -76,7 +99,7 @@ #include "gdcmJPEGFragmentsInfo.h" #include -#include //sscanf +#include //sscanf #include // for atoi namespace gdcm @@ -1472,7 +1495,7 @@ bool File::Write(std::string fileName, FileType writetype) if ( e0000 ) { std::ostringstream sLen; - sLen << ComputeGroup0002Length(writetype); + sLen << ComputeGroup0002Length( ); e0000->SetValue(sLen.str()); } @@ -1662,7 +1685,7 @@ bool File::ReadTag(uint16_t testGroup, uint16_t testElem) itemTagGroup = ReadInt16(); itemTagElem = ReadInt16(); } - catch ( FormatError e ) + catch ( FormatError /*e*/ ) { //std::cerr << e << std::endl; return false;