Program: gdcm
Module: $RCSfile: gdcmFile.cxx,v $
Language: C++
- Date: $Date: 2004/06/22 13:47:33 $
- Version: $Revision: 1.105 $
+ Date: $Date: 2004/06/22 14:14:01 $
+ Version: $Revision: 1.106 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* one sets an a posteriori shadow dictionary (efficiency can be
* seen as a side effect).
* @param header file to be opened for reading datas
- * @return
+ * @return
*/
gdcmFile::gdcmFile(gdcmHeader *header) {
Header=header;
/**
* \ingroup gdcmFile
* \brief computes the length (in bytes) to ALLOCATE to receive the
- * image(s) pixels (multiframes taken into account)
+ * image(s) pixels (multiframes taken into account)
* \warning : it is NOT the group 7FE0 length
* (no interest for compressed images).
* @return length to allocate
* Header->GetZSize() * (nb/8)* Header->GetSamplesPerPixel();
std::string str_PhotometricInterpretation =
Header->GetEntryByNumber(0x0028,0x0004);
-
+
/*if ( str_PhotometricInterpretation == "PALETTE COLOR " )*/
// pb when undealt Segmented Palette Color
PixelData = new char[lgrTotale];
if (PixelData) {
GetImageDataIntoVector(PixelData, lgrTotale);
- GetHeader()->SetEntryVoidAreaByNumber(PixelData,
+ GetHeader()->SetEntryVoidAreaByNumber(PixelData,
GetHeader()->GetGrPixel(),
GetHeader()->GetNumPixel());
}
PixelRead=0; // no PixelRaw
-
+
return(PixelData);
}
Program: gdcm
Module: $RCSfile: gdcmHeader.cxx,v $
Language: C++
- Date: $Date: 2004/06/21 04:18:25 $
- Version: $Revision: 1.166 $
+ Date: $Date: 2004/06/22 14:18:49 $
+ Version: $Revision: 1.167 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
if (HasLUT()) // PALETTE COLOR is NOT enough
return 3;
else
- return 1;
+ return 1;
}
-
- //beware of trailing space at end of string
+
+ //beware of trailing space at end of string
if (PhotometricInterpretation.find(GDCM_UNFOUND) <
PhotometricInterpretation.length() ||
PhotometricInterpretation.find("MONOCHROME1") <
Program: gdcm
Module: $RCSfile: gdcmSQItem.cxx,v $
Language: C++
- Date: $Date: 2004/06/22 13:47:33 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2004/06/22 14:16:45 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
if (gdcmBinEntry* BinEntry = dynamic_cast< gdcmBinEntry* >(Entry) ) {
BinEntry->Write(fp,filetype);
- return;
+ return;
}
if (gdcmValEntry* ValEntry = dynamic_cast< gdcmValEntry* >(Entry) ) {
ValEntry->Write(fp,filetype);
- return;
+ return;
}
if (gdcmSeqEntry* SeqEntry = dynamic_cast< gdcmSeqEntry* >(Entry) ) {
SeqEntry->Write(fp,filetype);
- return;
+ return;
}
}
}
// that is a method of gdcmDocument :-(
gdcmValEntry* Entry = (gdcmValEntry*)0;
TagKey key = gdcmDictEntry::TranslateToKey(group, element);
-
+
if ( ! ptagHT->count(key))
{
// we assume a Public Dictionnary *is* loaded
Entry->SetLength(val.length());
docEntries.insert(i,Entry);
return true;
- }
+ }
if (group == (*i)->GetGroup() && element == (*i)->GetElement() )
{
if ( gdcmValEntry* Entry = dynamic_cast<gdcmValEntry*>(*i) )