PnmParser::Rep Struct Reference

Collaboration diagram for PnmParser::Rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Rep (const std::string &fname_)
 Rep (std::istream &strm_)
void init ()
void readPixels8 (byte *space, int nvals)
 Read the actual pixels out of the file, for 1-byte-per-value images.
void readPixels16 (uint16 *space, int nvals)
 Read the actual pixels out of the file, for 2-bytes-per-value images.
Image< byteparseBW ()
 Parse a 1-bit black+white raw or ascii image file into an 8-bit image.
Image< byteparseGrayU8 ()
 Parse an 8-bit grayscale image in either raw or ascii mode.
Image< uint16parseGrayU16 ()
 Parse a 16-bit grayscale image in either raw or ascii mode.
Image< PixRGB< byte > > parseRgbU8 ()
 Parse an 8-bit rgb image in either raw or ascii mode.
Image< PixRGB< uint16 > > parseRgbU16 ()
 Parse a 16-bit rgb image in either raw or ascii mode.

Public Attributes

std::string fname
rutz::shared_ptr< std::istream > owned_strm
std::istream * strm
int mode
int w
int h
int maxGrey
std::string comments

Detailed Description

Definition at line 55 of file PnmParser.C.


Member Function Documentation

Image< byte > PnmParser::Rep::parseBW (  ) 

Parse a 1-bit black+white raw or ascii image file into an 8-bit image.

The underlying file must be a black_white file (mode 1 or 4).

Definition at line 255 of file PnmParser.C.

References ASSERT, Image< T >::beginw(), Image< T >::endw(), and NO_INIT.

Referenced by PnmParser::getFrame().

Image< uint16 > PnmParser::Rep::parseGrayU16 (  ) 

Parse a 16-bit grayscale image in either raw or ascii mode.

The underlying file must be a grayscale file (mode 2 or 5).

Definition at line 326 of file PnmParser.C.

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

Referenced by PnmParser::getFrame().

Image< byte > PnmParser::Rep::parseGrayU8 (  ) 

Parse an 8-bit grayscale image in either raw or ascii mode.

The underlying file must be a grayscale file (mode 2 or 5).

Definition at line 316 of file PnmParser.C.

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

Referenced by PnmParser::getFrame().

Image< PixRGB< uint16 > > PnmParser::Rep::parseRgbU16 (  ) 

Parse a 16-bit rgb image in either raw or ascii mode.

The underlying file must be a RGB file (mode 3 or 6).

Definition at line 346 of file PnmParser.C.

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

Referenced by PnmParser::getFrame().

Image< PixRGB< byte > > PnmParser::Rep::parseRgbU8 (  ) 

Parse an 8-bit rgb image in either raw or ascii mode.

The underlying file must be a RGB file (mode 3 or 6).

Definition at line 336 of file PnmParser.C.

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

Referenced by PnmParser::getFrame().

void PnmParser::Rep::readPixels16 ( uint16 space,
int  nvals 
)

Read the actual pixels out of the file, for 2-bytes-per-value images.

Definition at line 204 of file PnmParser.C.

References ASSERT.

Referenced by parseGrayU16(), and parseRgbU16().

void PnmParser::Rep::readPixels8 ( byte space,
int  nvals 
)

Read the actual pixels out of the file, for 1-byte-per-value images.

Definition at line 162 of file PnmParser.C.

References ASSERT.

Referenced by parseGrayU8(), and parseRgbU8().


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