Program: gdcm
Module: $RCSfile: gdcmDebug.cxx,v $
Language: C++
- Date: $Date: 2005/02/02 14:52:22 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-----------------------------------------------------------------------------
// Public
/**
- * \brief Accessor
+ * \brief Sets the debug flag
* @param flag Set the debug flag
*/
void Debug::SetDebugFlag (bool flag)
}
/**
- * \brief Set Accessor
+ * \brief Set the filename the debug stream should be redirect to
+ * Settting a filename also set DebugToFile to true
* @param filename File to redirect debug info
* Absolutely nothing is check. You have to pass in
* a correct filename
}
/**
- * \brief Get Accessor
+ * \brief Internal use only. Allow us to retrieve the static from anywhere
+ * in gdcm code
* @return Debug file
*/
std::ofstream &Debug::GetDebugFile ()
Program: gdcm
Module: $RCSfile: gdcmDebug.h,v $
Language: C++
- Date: $Date: 2005/02/01 13:11:49 $
- Version: $Revision: 1.28 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.29 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/// messages are displayed.
static void SetDebugFlag (bool flag);
static bool GetDebugFlag ();
+ /// \brief Sets the Debug Flag to true
static void DebugOn () { SetDebugFlag(true); };
+ /// \brief Sets the Debug Flag to false
static void DebugOff () { SetDebugFlag(false); };
/// This is a global flag that controls if debug are redirected
/// to a file or not
static void SetDebugToFile (bool flag);
static bool GetDebugToFile ();
+ /// \brief Next debug messages will be sent in the debug file
static void DebugToFileOn () { SetDebugToFile(true); };
+ /// \brief Next debug messages will be sent in the standard output
static void DebugToFileOff () { SetDebugToFile(false); };
- /// Set the filename the debug stream should be redirect to
- /// Settting a filename also set DebugToFile to true
- static void SetDebugFilename (std::string const& filename);
+ static void SetDebugFilename (std::string const &filename);
- /// Internal use only. Allow us to retrieve the static from anywhere
- /// in gdcm code
static std::ofstream &GetDebugFile ();
};
Program: gdcm
Module: $RCSfile: gdcmDicomDirPatient.h,v $
Language: C++
- Date: $Date: 2005/02/02 14:52:25 $
- Version: $Revision: 1.24 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.25 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
DicomDirPatient(bool empty=false);
~DicomDirPatient();
- void Print(std::ostream &os = std::cout, std::string const & indent = "" );
+ void Print(std::ostream &os = std::cout, std::string const &indent = "" );
void WriteContent(std::ofstream *fp, FileType t);
// Patient methods
+ /// \brief Adds a new gdcmDicomDirStudy to the Patient
void AddStudy(DicomDirStudy *obj) { Studies.push_back(obj); };
DicomDirStudy *NewStudy();
void ClearStudy();
Program: gdcm
Module: $RCSfile: gdcmDicomDirSerie.h,v $
Language: C++
- Date: $Date: 2005/02/02 14:52:26 $
- Version: $Revision: 1.26 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.27 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
DicomDirSerie(bool empty=false);
~DicomDirSerie();
- void Print( std::ostream &os = std::cout, std::string const & indent = "" );
+ void Print( std::ostream &os = std::cout, std::string const &indent = "" );
void WriteContent( std::ofstream *fp, FileType t );
// Image methods
DicomDirImage *NewImage();
+ /// Add a new gdcm::DicomDirImage to the Serie
void AddImage(DicomDirImage *obj) { Images.push_back(obj); };
void ClearImage();
Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.h,v $
Language: C++
- Date: $Date: 2005/02/02 14:52:26 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
DicomDirStudy(bool empty=false);
~DicomDirStudy();
- void Print(std::ostream &os = std::cout, std::string const & indent = "" );
+ void Print(std::ostream &os = std::cout, std::string const &indent = "" );
void WriteContent(std::ofstream *fp, FileType t);
// Serie methods
DicomDirSerie* NewSerie();
+ /// Adds a gdcm::DicomDirSerie to a Study
void AddSerie(DicomDirSerie *obj) { Series.push_back(obj); };
void ClearSerie();
Program: gdcm
Module: $RCSfile: gdcmDirList.cxx,v $
Language: C++
- Date: $Date: 2005/02/02 15:07:41 $
- Version: $Revision: 1.43 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.44 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-----------------------------------------------------------------------------
// Public
+/**
+ * \brief Tells us if file name corresponds to a Directory
+ * @param dirName file name to check
+ * @return true if the file IS a Directory
+ */
bool DirList::IsDirectory(std::string const &dirName)
{
#ifndef _MSC_VER
Program: gdcm
Module: $RCSfile: gdcmDocEntryArchive.h,v $
Language: C++
- Date: $Date: 2005/01/26 11:42:02 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void ClearArchive(void);
private:
-// TagDocEntryHT &HeaderHT; // we keep the name HeaderHT
+ /// pointer to the gdcm::File pointer we want to save values from
File *ArchFile;
+ /// H table to save values.
TagDocEntryHT Archive;
};
} // end namespace gdcm
Program: gdcm
Module: $RCSfile: gdcmGlobal.h,v $
Language: C++
- Date: $Date: 2005/02/01 10:29:55 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
static DictSet *Dicts;
/// Pointer to a hash table containing the 'Value Representations'.
static VR *ValRes;
- /// Pointer to a hash table containing the Transfer Syntax codes and their
- /// english description
+ /// \brief Pointer to a hash table containing the Transfer Syntax codes
+ /// and their english description
static TS *TranSyn;
- /// Pointer to the hash table containing the Dicom Elements necessary
- /// to describe each part of a DICOMDIR
+ /// \brief Pointer to the hash table containing the Dicom Elements necessary
+ /// to describe each part of a DICOMDIR
static DicomDirElement *ddElem;
};
} // end namespace gdcm
Program: gdcm
Module: $RCSfile: gdcmJPEGFragment.cxx,v $
Language: C++
- Date: $Date: 2005/02/01 10:29:55 $
- Version: $Revision: 1.13 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.14 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-------------------------------------------------------------------------
// For JPEG 2000, body in file gdcmJpeg2000.cxx
// Not yet made
-bool gdcm_read_JPEG2000_file (std::ifstream* fp, void* image_buffer);
+bool gdcm_read_JPEG2000_file (std::ifstream *fp, void *image_buffer);
// For JPEG-LS, body in file gdcmJpegLS.cxx
// Not yet made
-bool gdcm_read_JPEGLS_file (std::ifstream* fp, void* image_buffer);
+bool gdcm_read_JPEGLS_file (std::ifstream *fp, void *image_buffer);
//-------------------------------------------------------------------------
// Constructor / Destructor
*/
void JPEGFragment::DecompressJPEGFramesFromFile(std::ifstream *fp,
uint8_t *buffer, int nBits,
- int & statesuspension)
+ int &statesuspension)
{
// First thing need to reset file to proper position:
fp->seekg( Offset, std::ios::beg);
Program: gdcm
Module: $RCSfile: gdcmJPEGFragment.h,v $
Language: C++
- Date: $Date: 2005/01/31 04:00:04 $
- Version: $Revision: 1.15 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.16 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace gdcm
{
/**
- * \brief Utility class for summerizing the informations of a JPEG
+ * \brief *very* internal class . Shouldn't appear here !
+ * Utility class for summerizing the informations of a JPEG
* fragment of an "Encapsulated JPEG Compressed Image".
* This information is a mix of:
* - the fragment offset
public:
JPEGFragment();
void Print( std::ostream &os = std::cout, std::string indent = "" );
- void DecompressJPEGFramesFromFile(std::ifstream *fp, uint8_t *buffer, int nBits, int & statesuspension);
+ void DecompressJPEGFramesFromFile(std::ifstream *fp,
+ uint8_t *buffer, int nBits,
+ int &statesuspension);
- bool ReadJPEGFile8 (std::ifstream* fp, void* image_buffer, int & statesuspension );
- bool ReadJPEGFile12 (std::ifstream* fp, void* image_buffer, int & statesuspension );
- bool ReadJPEGFile16 (std::ifstream* fp, void* image_buffer, int & statesuspension );
+ bool ReadJPEGFile8 (std::ifstream* fp, void *image_buffer, int &statesuspension );
+ bool ReadJPEGFile12 (std::ifstream* fp, void *image_buffer, int &statesuspension );
+ bool ReadJPEGFile16 (std::ifstream* fp, void *image_buffer, int &statesuspension );
void SetLength(uint32_t length) { Length = length; };
- uint32_t GetLength() { return Length;};
+ uint32_t GetLength() { return Length; };
void SetOffset(uint32_t offset) { Offset = offset; };
- uint32_t GetOffset() { return Offset;};
- uint8_t *GetImage() { return pImage;};
+ uint32_t GetOffset() { return Offset; };
+ uint8_t *GetImage() { return pImage; };
private:
uint32_t Offset;
Program: gdcm
Module: $RCSfile: gdcmPixelReadConvert.cxx,v $
Language: C++
- Date: $Date: 2005/02/03 17:12:46 $
- Version: $Revision: 1.47 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.48 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-----------------------------------------------------------------------------
// Constructor / Destructor
+/// Constructor
PixelReadConvert::PixelReadConvert()
{
RGB = 0;
LutBlueData = 0;
}
+/// Canonical Destructor
PixelReadConvert::~PixelReadConvert()
{
Squeeze();
ComputeRawAndRGBSizes();
}
+/// \brief Reads from disk and decompresses Pixels
bool PixelReadConvert::ReadAndDecompressPixelData( std::ifstream *fp )
{
// ComputeRawAndRGBSizes is already made by
return true;
}
+/// Deletes Pixels Area
void PixelReadConvert::Squeeze()
{
if ( RGB )
delete[] copyRaw;
}
+/// \brief Deals with the color decoding i.e. handle:
+/// - R, G, B planes (as opposed to RGB pixels)
+/// - YBR (various) encodings.
+/// - LUT[s] (or "PALETTE COLOR").
+
void PixelReadConvert::ConvertHandleColor()
{
//////////////////////////////////
// In *normal *case, when planarConf is 0, pixels are already in RGB
}
+/// Computes the Pixels Size
void PixelReadConvert::ComputeRawAndRGBSizes()
{
int bitsAllocated = BitsAllocated;
}
}
+/// Allocates room for RGB Pixels
void PixelReadConvert::AllocateRGB()
{
if ( RGB )
RGB = new uint8_t[RGBSize];
}
+/// Allocates room for RAW Pixels
void PixelReadConvert::AllocateRaw()
{
if ( Raw )
Program: gdcm
Module: $RCSfile: gdcmPixelWriteConvert.cxx,v $
Language: C++
- Date: $Date: 2005/02/01 10:29:56 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-----------------------------------------------------------------------------
// Constructor / Destructor
/**
- * \brief Construcror
+ * \brief Constructor
*/
PixelWriteConvert::PixelWriteConvert()
{
- ReadData = 0;
+ ReadData = 0;
ReadDataSize = 0;
- UserData = 0;
+ UserData = 0;
UserDataSize = 0;
}
* @param data data
* @param size size
*/
-void PixelWriteConvert::SetReadData(uint8_t *data,size_t size)
+void PixelWriteConvert::SetReadData(uint8_t *data, size_t size)
{
ReadData = data;
ReadDataSize = size;
}
/**
- * \brief SetUserData
+ * \brief Sets User Data
* @param data data
* @param size size
*/
-void PixelWriteConvert::SetUserData(uint8_t *data,size_t size)
+void PixelWriteConvert::SetUserData(uint8_t *data, size_t size)
{
UserData = data;
UserDataSize = size;
}
/**
- * \brief GetData
- * @return data
+ * \brief Get Data (UserData or ReadData)
+ * @return data data
*/
uint8_t *PixelWriteConvert::GetData()
{
}
/**
- * \brief GetDataSize
- * @return size
+ * \brief Get Data Size (UserData or ReadData)
+ * @return size size
*/
size_t PixelWriteConvert::GetDataSize()
{