PfzParser Class Reference

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

#include <Raster/PfzParser.H>

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

List of all members.

Classes

struct  Rep

Public Member Functions

 PfzParser (const char *fname)
 Initialize with a PGM or PPM file (either is OK).
virtual ~PfzParser ()
 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 61 of file PfzParser.H.


Constructor & Destructor Documentation

PfzParser::PfzParser ( const char *  fname  ) 

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

Definition at line 70 of file PfzParser.C.

PfzParser::~PfzParser (  )  [virtual]

Destructor.

Definition at line 180 of file PfzParser.C.


Member Function Documentation

std::string PfzParser::getComments (  )  const [virtual]

Get the comments from the image without fully reading it.

Implements RasterParser.

Definition at line 200 of file PfzParser.C.

GenericFrame PfzParser::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 221 of file PfzParser.C.

GenericFrameSpec PfzParser::getFrameSpec (  )  const [virtual]

Get the specifications of the image without fully reading it.

Implements RasterParser.

Definition at line 186 of file PfzParser.C.

References GenericFrame::GRAY_F32.

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

Get image tags if the image supports them.

Implements RasterParser.

Definition at line 208 of file PfzParser.C.

uint PfzParser::getTagCount (  )  const [virtual]

Get image tags if the image supports them.

Implements RasterParser.

Definition at line 204 of file PfzParser.C.


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