IO.C File Reference

#include "Image/IO.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include <iomanip>
#include <vector>
#include "inst/Image/IO.I"
Include dependency graph for IO.C:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
std::ostream & operator<< (std::ostream &os, const Image< T > &img)
template<class T >
void writeImageToStream (std::ostream &os, const Image< T > &img)
 Write img to to "os", one line of the image into one line of text.
template<class T >
void readImageFromStream (std::istream &is, Image< T > &img)
 Read img from "is" which has been written with writeImageToStream before.
template std::ostream & operator<< (std::ostream &, const Image< int > &)
template std::ostream & operator<< (std::ostream &, const Image< double > &)

Detailed Description

I/O operations for Image's

Definition in file IO.C.


Function Documentation

template<class T >
void readImageFromStream ( std::istream &  is,
Image< T > &  img 
) [inline]

Read img from "is" which has been written with writeImageToStream before.

Definition at line 109 of file IO.C.

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

Referenced by KalmanFilter::readFromStream().

template<class T >
void writeImageToStream ( std::ostream &  os,
const Image< T > &  img 
) [inline]

Write img to to "os", one line of the image into one line of text.

This is only useful for rather small images!

Definition at line 91 of file IO.C.

References Image< T >::begin(), Image< T >::getDims(), Dims::h(), and Dims::w().

Referenced by KalmanFilter::writeToStream().

Generated on Sun May 8 08:42:41 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3