X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.cxx;h=48732a3086f83b2510101e92ba0648161b90a17e;hb=713d0f3d28a6176fab6d57e031633061dc7354a7;hp=5e83b61d4b9ac97bbe75ffc2490da5c8efddfd5f;hpb=a4cc79200b40be00c490fa4a9116dca626e1c5cf;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 5e83b61d..48732a30 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2007/09/17 12:16:02 $ - Version: $Revision: 1.337 $ + Date: $Date: 2007/10/08 15:20:17 $ + Version: $Revision: 1.340 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -568,8 +568,6 @@ int File::GetTSize() } } - - /** * \brief gets the info from 0018,1164 : ImagerPixelSpacing * then 0028,0030 : Pixel Spacing @@ -1508,7 +1506,13 @@ bool File::HasLUT() return false; } // Red Palette Color Lookup Table Data - if ( !GetDocEntry(0x0028,0x1201) ) + bool segmented; + segmented = GetDocEntry(0x0028,0x1221) && + GetDocEntry(0x0028,0x1222) && + GetDocEntry(0x0028,0x1223); + if( segmented ) return true; + + if( !GetDocEntry(0x0028,0x1201) ) { return false; } @@ -2008,7 +2012,7 @@ bool File::Write(std::string fileName, FileType writetype) InsertEntryString(s_lgPix,GrPixel, 0x0000, "UL"); } } - Document::WriteContent(fp, writetype); + Document::WriteContent(fp, writetype,false,false); fp->close(); delete fp;