libCalib
C++ library documentation
libCalib::Image< T > Class Template Reference

#include <types.h>

Public Member Functions

 Image (const ImageSize size, const T val=0)
 
 Image (const Image &other)
 
 Image (const std::string &filePath)
 
bool loadFromDisk (const std::string &filePath)
 
bool saveToDisk (const std::string &filePath)
 
void resize (const ImageSize size)
 
void fill (const T val)
 
size_t getWidth () const
 
size_t getHeight () const
 
ImageSize getSize () const
 
T & operator() (unsigned int x, unsigned int y)
 
operator() (unsigned int x, unsigned int y) const
 
T * ptr ()
 
T const * ptr () const
 
template<class Archive >
void serialize (Archive &ar)
 

Detailed Description

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

A general purpose dynamically sized image type.