Program: gdcm
Module: $RCSfile: gdcmHeader.h,v $
Language: C++
- Date: $Date: 2004/10/28 03:10:58 $
- Version: $Revision: 1.92 $
+ Date: $Date: 2004/12/03 20:16:58 $
+ Version: $Revision: 1.96 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMHEADER_H
#define GDCMHEADER_H
-#include "gdcmCommon.h"
#include "gdcmDocument.h"
namespace gdcm
bool HasLUT();
int GetLUTNbits();
+ /// Return the Transfer Syntax as a string
std::string GetTransfertSyntaxName();
/// Accessor to \ref Header::GrPixel
/// Accessor to \ref Header::NumPixel
uint16_t GetNumPixel() { return NumPixel; }
- /// Read (used in File)
- void SetImageDataSize(size_t expectedSize);
+ bool Write(std::string fileName, FileType filetype);
- void Write(std::ofstream* fp, FileType filetype);
+ /// Initialize DICOM header when none
+ void InitializeDefaultHeader();
protected:
+ /// Replace patient's specific information by 'anonymous'
bool AnonymizeHeader();
+
+ /// Helper function needed to organize DICOM files based on
+ /// their x,y,z position
void GetImageOrientationPatient( float iop[6] );
private: