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

gdcm::JPEGCodec Class Reference

#include <gdcmJPEGCodec.h>

Inheritance diagram for gdcm::JPEGCodec:

gdcm::ImageCodec gdcm::Codec gdcm::Coder gdcm::Decoder gdcm::JPEG12Codec gdcm::JPEG16Codec gdcm::JPEG8Codec

List of all members.

Detailed Description

JPEG codec Class to do JPEG (8bits, 12bits, 16bits lossy & lossless). It redispatch in between the different codec implementation: gdcm::JPEG8Codec, gdcm::JPEG12Codec & gdcm::JPEG16Codec It also support inconsistency in between DICOM header and JPEG compressed stream ImageCodec implementation for the JPEG case.

Things you should know if you ever want to dive into DICOM/JPEG world (among other):

Definition at line 41 of file gdcmJPEGCodec.h.

Public Member Functions

bool CanCode (TransferSyntax const &ts) const
 Return whether this coder support this transfer syntax (can code it).
bool CanDecode (TransferSyntax const &ts) const
 Return whether this decoder support this transfer syntax (can decode it).
bool Code (DataElement const &in, DataElement &out)
 Compress into JPEG.
void ComputeOffsetTable (bool b)
 Compute the offset table:.
bool Decode (DataElement const &is, DataElement &os)
const unsigned int * GetDimensions () const
virtual bool GetHeaderInfo (std::istream &is, TransferSyntax &ts)
bool GetLossless () const
const LookupTableGetLUT () const
bool GetNeedByteSwap () const
const PhotometricInterpretationGetPhotometricInterpretation () const
const PixelFormatGetPixelFormat () const
PixelFormatGetPixelFormat ()
unsigned int GetPlanarConfiguration () const
double GetQuality () const
bool IsLossy () const
void SetDimensions (const unsigned int *d)
void SetLossless (bool l)
void SetLUT (LookupTable const &lut)
void SetNeedByteSwap (bool b)
void SetNeedOverlayCleanup (bool b)
void SetNumberOfDimensions (unsigned int dim)
void SetPhotometricInterpretation (PhotometricInterpretation const &pi)
void SetPixelFormat (PixelFormat const &pf)
void SetPlanarConfiguration (unsigned int pc)
void SetQuality (double q)

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)
bool IsValid (PhotometricInterpretation const &pi)
void SetBitSample (int bit)

Protected Attributes

int BitSample
unsigned int Dimensions [3]
bool Lossless
bool LossyFlag
bool NeedByteSwap
bool NeedOverlayCleanup
unsigned int NumberOfDimensions
PixelFormat PF
PhotometricInterpretation PI
unsigned int PlanarConfiguration
int Quality
bool RequestPaddedCompositePixelCode
bool RequestPlanarConfiguration

Private Attributes


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

Generated by  Doxygen 1.6.0   Back to index