#include "Image/IO.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include <iomanip>
#include <vector>
#include "inst/Image/IO.I"
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 > &) |
I/O operations for Image's
Definition in file IO.C.
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().
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().