Program: gdcm
Module: $RCSfile: gdcmPixelConvert.h,v $
Language: C++
- Date: $Date: 2004/10/20 22:31:52 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2004/10/25 04:08:20 $
+ 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
#ifndef GDCMPIXELCONVERT_H
-#define GDCMPIXELCONVERTL_H
+#define GDCMPIXELCONVERT_H
#include "gdcmCommon.h"
#include "gdcmRLEFramesInfo.h"
namespace gdcm
{
-
/*
* \brief Utility container for gathering the various forms the pixel data
* migth take during the user demanded processes.
*/
-class GDCM_EXPORT PixelConvert {
+class GDCM_EXPORT PixelConvert
+{
public:
PixelConvert();
~PixelConvert();
// In progress
void GrabInformationsFromHeader( Header* header );
- bool ReadAndDecompressPixelData( FILE* fp );
+ bool ReadAndDecompressPixelData( std::ifstream* fp );
void Squeeze();
bool BuildRGBImage();
uint8_t* subDecompressed,
long fragmentSize,
long decompressedSegmentSize,
- FILE* fp );
- void ReadAndDecompress12BitsTo16Bits( FILE* fp ) throw ( FormatError );
- bool ReadAndDecompressRLEFile( FILE* fp );
- bool ReadAndDecompressJPEGFile( FILE* fp );
+ std::ifstream* fp );
+ void ReadAndDecompress12BitsTo16Bits( std::ifstream* fp ) throw ( FormatError );
+ bool ReadAndDecompressRLEFile( std::ifstream* fp );
+ bool ReadAndDecompressJPEGFile( std::ifstream* fp );
+ void BuildLUTRGBA( std::ifstream* fp );
// In place (within Decompressed and with no fp access) decompression
// or convertion: