PfmParser Class Reference

This class handles reading/parsing of PFM image files. More...

#include <Raster/PfmParser.H>

Inheritance diagram for PfmParser:
Inheritance graph
[legend]
Collaboration diagram for PfmParser:
Collaboration graph
[legend]

List of all members.

Classes

struct  Rep

Public Member Functions

 PfmParser (const std::string &fname)
 Initialize with a PGM or PPM file (either is OK).
virtual ~PfmParser ()
 Destructor.
virtual GenericFrameSpec getFrameSpec () const
 Get the specifications of the image without fully reading it.
virtual std::string getComments () const
 Get the comments from the image without fully reading it.
virtual uint getTagCount () const
 Get image tags if the image supports them.
virtual bool getTag (uint tag, std::string &name, std::string &value) const
 Get image tags if the image supports them.
virtual GenericFrame getFrame ()
 Get a GenericFrame representation from the raster file.

Detailed Description

This class handles reading/parsing of PFM image files.

PFM is an unofficial format that looks very much like PGM except that raw pixel values are floats. Caution, this is not portable across endianness. The PNM magic for this unofficial format is PF.

Definition at line 56 of file PfmParser.H.


Constructor & Destructor Documentation

PfmParser::PfmParser ( const std::string fname  ) 

Initialize with a PGM or PPM file (either is OK).

Definition at line 76 of file PfmParser.C.

References rutz::shared_ptr< T >::get().

PfmParser::~PfmParser (  )  [virtual]

Destructor.

Definition at line 121 of file PfmParser.C.


Member Function Documentation

string PfmParser::getComments (  )  const [virtual]

Get the comments from the image without fully reading it.

Implements RasterParser.

Definition at line 141 of file PfmParser.C.

GenericFrame PfmParser::getFrame (  )  [virtual]

Get a GenericFrame representation from the raster file.

This can subsequently be converted to rgb, grayscale, floating-point, or video-yuv.

Implements RasterParser.

Definition at line 162 of file PfmParser.C.

References ASSERT, Image< T >::getArrayPtr(), Image< T >::getSize(), and NO_INIT.

GenericFrameSpec PfmParser::getFrameSpec (  )  const [virtual]

Get the specifications of the image without fully reading it.

Implements RasterParser.

Definition at line 127 of file PfmParser.C.

References GenericFrame::GRAY_F32.

bool PfmParser::getTag ( uint  tag,
std::string name,
std::string value 
) const [virtual]

Get image tags if the image supports them.

Implements RasterParser.

Definition at line 149 of file PfmParser.C.

uint PfmParser::getTagCount (  )  const [virtual]

Get image tags if the image supports them.

Implements RasterParser.

Definition at line 145 of file PfmParser.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:23:46 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3