Public Types | Public Member Functions
rtc::Image< T > Class Template Reference

#include <rtcImage.h>

Inheritance diagram for rtc::Image< T >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef T Pixel

Public Member Functions

void doubleImage ()
void doubleImage2 ()
void doubleImage2To (Image< T > &other)
void doubleImageTo (Image< T > &other)
bool fromOpenCV (const cv::Mat &image)
template<>
bool fromOpenCV (const cv::Mat &image)
template<>
bool fromOpenCV (const cv::Mat &image)
void halfImage ()
void halfImageTo (Image< T > &other)
 Image ()
 Image (int _rows, int _columns)
 Image (const Image &other)
Pixel interpolate (const float row, const float col) const
template<>
Image< Vec3uc >::Pixel interpolate (const float row, const float col) const
template<>
Image< Vec4uc >::Pixel interpolate (const float row, const float col) const
template<>
Image< float >::Pixel interpolate (const float row, const float col) const
template<>
Image< unsigned char >::Pixel interpolate (const float row, const float col) const
void operator*= (const Image< T > &other)
void operator*= (const T &v)
void operator+= (const Image< T > &other)
void operator+= (const T &v)
void operator-= (const Image< T > &other)
void operator-= (const T &v)
void operator/= (const Image< T > &other)
void operator/= (const T &v)
Image< T > & operator= (const Image< T > &img)
virtual bool read (InputHandler &ih)
void read (FILE *fp)
template<>
bool readFromFile (const char *filename)
template<>
bool readFromFile (const char *filename)
bool readFromFile (const char *filename)
template<>
bool readFromFile (const char *filename)
template<>
bool readFromFile (const char *filename)
bool resize (int rows, int columns)
bool resized (Image &dest) const
bool toOpenCV (cv::Mat &image) const
template<>
bool toOpenCV (cv::Mat &image) const
virtual bool write (OutputHandler &oh) const
void write (FILE *fp) const
bool writeToFile (const char *filename) const
template<>
bool writeToFile (const char *filename) const
template<>
bool writeToFile (const char *filename) const
template<>
bool writeToFile (const char *filename) const
template<>
bool writeToFile (const char *filename) const
virtual ~Image ()

Detailed Description

template<typename T>
class rtc::Image< T >

A color image container class

Definition at line 38 of file rtcImage.h.


Member Typedef Documentation

template<typename T>
typedef T rtc::Image< T >::Pixel

Definition at line 40 of file rtcImage.h.


Constructor & Destructor Documentation

template<typename T>
rtc::Image< T >::Image ( ) [inline]

Definition at line 48 of file rtcImage.h.

template<typename T>
rtc::Image< T >::Image ( int  _rows,
int  _columns 
) [inline]

Definition at line 49 of file rtcImage.h.

template<typename T>
rtc::Image< T >::Image ( const Image< T > &  other) [inline]

Definition at line 50 of file rtcImage.h.

template<typename T>
virtual rtc::Image< T >::~Image ( ) [inline, virtual]

Definition at line 52 of file rtcImage.h.


Member Function Documentation

template<typename T>
void rtc::Image< T >::doubleImage ( ) [inline]

Definition at line 81 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::doubleImage2 ( ) [inline]

Definition at line 83 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::doubleImage2To ( Image< T > &  other) [inline]

Definition at line 125 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::doubleImageTo ( Image< T > &  other) [inline]

Definition at line 113 of file rtcImage.h.

template<typename T>
bool rtc::Image< T >::fromOpenCV ( const cv::Mat &  image)
template<>
bool rtc::Image< Vec3uc >::fromOpenCV ( const cv::Mat &  image)

Definition at line 275 of file rtcImage.cpp.

template<>
bool rtc::Image< Vec4uc >::fromOpenCV ( const cv::Mat &  image)

Definition at line 293 of file rtcImage.cpp.

template<typename T>
void rtc::Image< T >::halfImage ( ) [inline]

Definition at line 79 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::halfImageTo ( Image< T > &  other) [inline]

Definition at line 101 of file rtcImage.h.

template<typename T>
Pixel rtc::Image< T >::interpolate ( const float  row,
const float  col 
) const
template<>
Image< Vec3uc >::Pixel rtc::Image< Vec3uc >::interpolate ( const float  row,
const float  col 
) const

Use bilinear interpolation to approximate values between the elements of matrices.

Definition at line 191 of file rtcImage.cpp.

template<>
Image< Vec4uc >::Pixel rtc::Image< Vec4uc >::interpolate ( const float  row,
const float  col 
) const

Definition at line 212 of file rtcImage.cpp.

template<>
Image< float >::Pixel rtc::Image< float >::interpolate ( const float  row,
const float  col 
) const

Definition at line 233 of file rtcImage.cpp.

template<>
Image< unsigned char >::Pixel rtc::Image< unsigned char >::interpolate ( const float  row,
const float  col 
) const

Definition at line 254 of file rtcImage.cpp.

template<typename T>
void rtc::Image< T >::operator*= ( const Image< T > &  other) [inline]

Definition at line 85 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::operator*= ( const T &  v) [inline]

Definition at line 88 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::operator+= ( const Image< T > &  other) [inline]

Definition at line 86 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::operator+= ( const T &  v) [inline]

Definition at line 90 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::operator-= ( const Image< T > &  other) [inline]

Definition at line 84 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::operator-= ( const T &  v) [inline]

Definition at line 89 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::operator/= ( const Image< T > &  other) [inline]

Definition at line 87 of file rtcImage.h.

template<typename T>
void rtc::Image< T >::operator/= ( const T &  v) [inline]

Definition at line 91 of file rtcImage.h.

template<typename T>
Image< T > & rtc::Image< T >::operator= ( const Image< T > &  img) [inline]

Definition at line 219 of file rtcImage.h.

template<typename T >
bool rtc::Image< T >::read ( InputHandler ih) [inline, virtual]

Reimplemented from rtc::Array< T, 2 >.

Definition at line 191 of file rtcImage.h.

template<typename T >
void rtc::Image< T >::read ( FILE *  fp) [inline]

Definition at line 207 of file rtcImage.h.

template<>
bool rtc::Image< Vec3uc >::readFromFile ( const char *  filename)

Definition at line 30 of file rtcImage.cpp.

template<>
bool rtc::Image< Vec4uc >::readFromFile ( const char *  filename)

Definition at line 50 of file rtcImage.cpp.

template<typename T>
bool rtc::Image< T >::readFromFile ( const char *  filename)
template<>
bool rtc::Image< float >::readFromFile ( const char *  filename)

Definition at line 71 of file rtcImage.cpp.

template<>
bool rtc::Image< unsigned char >::readFromFile ( const char *  filename)

Definition at line 92 of file rtcImage.cpp.

template<typename T >
bool rtc::Image< T >::resize ( int  rows,
int  columns 
) [inline]

Definition at line 162 of file rtcImage.h.

template<typename T >
bool rtc::Image< T >::resized ( Image< T > &  dest) const [inline]

Definition at line 171 of file rtcImage.h.

template<typename T>
bool rtc::Image< T >::toOpenCV ( cv::Mat &  image) const
template<>
bool rtc::Image< Vec3uc >::toOpenCV ( cv::Mat &  image) const

Definition at line 313 of file rtcImage.cpp.

template<typename T >
bool rtc::Image< T >::write ( OutputHandler oh) const [inline, virtual]

Reimplemented from rtc::Array< T, 2 >.

Definition at line 184 of file rtcImage.h.

template<typename T >
void rtc::Image< T >::write ( FILE *  fp) const [inline]

Definition at line 198 of file rtcImage.h.

template<typename T>
bool rtc::Image< T >::writeToFile ( const char *  filename) const
template<>
bool rtc::Image< Vec3uc >::writeToFile ( const char *  filename) const

Definition at line 113 of file rtcImage.cpp.

template<>
bool rtc::Image< Vec4uc >::writeToFile ( const char *  filename) const

Definition at line 132 of file rtcImage.cpp.

template<>
bool rtc::Image< float >::writeToFile ( const char *  filename) const

Definition at line 154 of file rtcImage.cpp.

template<>
bool rtc::Image< unsigned char >::writeToFile ( const char *  filename) const

Definition at line 171 of file rtcImage.cpp.


The documentation for this class was generated from the following file:


rtc
Author(s): Benjamin Pitzer
autogenerated on Mon Oct 6 2014 10:07:35