GDCM  2.2.6
Public Member Functions | Protected Member Functions | List of all members
gdcm::ImageReader Class Reference

ImageReader. More...

#include <gdcmImageReader.h>

Inheritance diagram for gdcm::ImageReader:
Inheritance graph
[legend]
Collaboration diagram for gdcm::ImageReader:
Collaboration graph
[legend]

Public Member Functions

 ImageReader ()
 
virtual ~ImageReader ()
 
const ImageGetImage () const
 Return the read image. More...
 
ImageGetImage ()
 
virtual bool Read ()
 
- Public Member Functions inherited from gdcm::PixmapReader
 PixmapReader ()
 
virtual ~PixmapReader ()
 
const PixmapGetPixmap () const
 Return the read image (need to call Read() first) More...
 
PixmapGetPixmap ()
 
- Public Member Functions inherited from gdcm::Reader
 Reader ()
 
virtual ~Reader ()
 
bool CanRead () const
 
const FileGetFile () const
 Set/Get File. More...
 
FileGetFile ()
 Set/Get File. More...
 
bool ReadSelectedPrivateTags (std::set< PrivateTag > const &ptags, bool readvalues=true)
 Will only read the specified selected private tags. More...
 
bool ReadSelectedTags (std::set< Tag > const &tags, bool readvalues=true)
 Will only read the specified selected tags. More...
 
bool ReadUpToTag (const Tag &tag, std::set< Tag > const &skiptags=std::set< Tag >())
 
void SetFile (File &file)
 Set/Get File. More...
 
void SetFileName (const char *filename_native)
 
void SetStream (std::istream &input_stream)
 Set the open-ed stream directly. More...
 

Protected Member Functions

bool ReadACRNEMAImage ()
 
bool ReadImage (MediaStorage const &ms)
 
- Protected Member Functions inherited from gdcm::PixmapReader
bool ReadImageInternal (MediaStorage const &ms, bool handlepixeldata=true)
 
- Protected Member Functions inherited from gdcm::Reader
std::istream * GetStreamPtr () const
 
bool ReadDataSet ()
 
bool ReadMetaInformation ()
 
bool ReadPreamble ()
 

Additional Inherited Members

- Protected Attributes inherited from gdcm::PixmapReader
SmartPointer< PixmapPixelData
 
- Protected Attributes inherited from gdcm::Reader
SmartPointer< FileF
 

Detailed Description

ImageReader.

Note
its role is to convert the DICOM DataSet into a gdcm::Image representation Image is different from Pixmap has it has a position and a direction in Space.
See Also
Image
Examples:
BasicImageAnonymizer.cs, CheckBigEndianBug.cxx, CompressImage.cxx, ConvertToQImage.cxx, ExtractIconFromFile.cxx, FixBrokenJ2K.cxx, FixJAIBugJPEGLS.cxx, GetJPEGSamplePrecision.cxx, HelloVizWorld.cxx, MergeTwoFiles.cxx, MrProtocol.cxx, PatchFile.cxx, ReadMultiTimesException.cxx, and threadgdcm.cxx.

Constructor & Destructor Documentation

gdcm::ImageReader::ImageReader ( )
virtual gdcm::ImageReader::~ImageReader ( )
virtual

Member Function Documentation

const Image& gdcm::ImageReader::GetImage ( ) const
Image& gdcm::ImageReader::GetImage ( )
virtual bool gdcm::ImageReader::Read ( )
virtual

Read the DICOM image. There are two reason for failure:

  1. The input filename is not DICOM
  2. The input DICOM file does not contains an Image.

Reimplemented from gdcm::PixmapReader.

Reimplemented in gdcm::ImageRegionReader.

Examples:
CheckBigEndianBug.cxx, CompressImage.cxx, ConvertToQImage.cxx, ExtractIconFromFile.cxx, FixBrokenJ2K.cxx, FixJAIBugJPEGLS.cxx, GetJPEGSamplePrecision.cxx, HelloVizWorld.cxx, MergeTwoFiles.cxx, MrProtocol.cxx, PatchFile.cxx, ReadMultiTimesException.cxx, and threadgdcm.cxx.
bool gdcm::ImageReader::ReadACRNEMAImage ( )
protectedvirtual

Reimplemented from gdcm::PixmapReader.

bool gdcm::ImageReader::ReadImage ( MediaStorage const &  ms)
protectedvirtual

Reimplemented from gdcm::PixmapReader.


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

Generated on Sat Dec 21 2013 05:56:21 for GDCM by doxygen 1.8.5
SourceForge.net Logo