Logo Search packages:      
Sourcecode: gdcm version File versions  Download package

gdcm::ImageCodec Class Reference

#include <gdcmImageCodec.h>

Inheritance diagram for gdcm::ImageCodec:

gdcm::Codec gdcm::Coder gdcm::Decoder gdcm::DeltaEncodingCodec gdcm::JPEG2000Codec gdcm::JPEGCodec gdcm::JPEGLSCodec gdcm::PNMCodec gdcm::PVRGCodec gdcm::RAWCodec gdcm::RLECodec

List of all members.


Detailed Description

ImageCodec.

Note:
Main codec, this is a central place for all implementation

Definition at line 31 of file gdcmImageCodec.h.


Public Member Functions

virtual bool CanCode (TransferSyntax const &) const =0
 Return whether this coder support this transfer syntax (can code it).
bool CanDecode (TransferSyntax const &) const
 Return whether this decoder support this transfer syntax (can decode it).
virtual bool Code (DataElement const &in, DataElement &out)
 Code.
bool Decode (DataElement const &is, DataElement &os)
 Decode.
const unsigned int * GetDimensions () const
virtual bool GetHeaderInfo (std::istream &is, TransferSyntax &ts)
const LookupTableGetLUT () const
bool GetNeedByteSwap () const
const PhotometricInterpretationGetPhotometricInterpretation () const
const PixelFormatGetPixelFormat () const
PixelFormatGetPixelFormat ()
unsigned int GetPlanarConfiguration () const
bool IsLossy () const
void SetDimensions (const unsigned int *d)
void SetLUT (LookupTable const &lut)
void SetNeedByteSwap (bool b)
void SetNeedOverlayCleanup (bool b)
void SetNumberOfDimensions (unsigned int dim)
void SetPhotometricInterpretation (PhotometricInterpretation const &pi)
virtual void SetPixelFormat (PixelFormat const &pf)
void SetPlanarConfiguration (unsigned int pc)

Protected Types

typedef SmartPointer< LookupTableLUTPtr

Protected Member Functions

bool Decode (std::istream &is, std::ostream &os)
bool DoByteSwap (std::istream &is, std::ostream &os)
bool DoInvertMonochrome (std::istream &is, std::ostream &os)
bool DoOverlayCleanup (std::istream &is, std::ostream &os)
bool DoPaddedCompositePixelCode (std::istream &is, std::ostream &os)
bool DoPlanarConfiguration (std::istream &is, std::ostream &os)
bool DoSimpleCopy (std::istream &is, std::ostream &os)
bool DoYBR (std::istream &is, std::ostream &os)
virtual bool InternalCode (const char *bv, unsigned long len, std::ostream &os)
virtual bool IsValid (PhotometricInterpretation const &pi)

Protected Attributes

unsigned int Dimensions [3]
bool LossyFlag
LUTPtr LUT
bool NeedByteSwap
bool NeedOverlayCleanup
unsigned int NumberOfDimensions
PixelFormat PF
PhotometricInterpretation PI
unsigned int PlanarConfiguration
bool RequestPaddedCompositePixelCode
bool RequestPlanarConfiguration

Friends

class ImageChangePhotometricInterpretation

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index