QTrk
Public Member Functions | List of all members
CImageData Class Reference

#include <utils.h>

Inheritance diagram for CImageData:
TImageData< float >

Public Member Functions

 CImageData (int w, int h)
 
 CImageData (const CImageData &other)
 
 CImageData ()
 
 ~CImageData ()
 
 CImageData (const TImageData< float > &src)
 
CImageDataoperator= (const CImageData &src)
 
CImageDataoperator= (const TImageData< float > &src)
 
- Public Member Functions inherited from TImageData< float >
 TImageData ()
 
 TImageData (float *d, int w, int h)
 
void set (Ta *src)
 
void set (const TImageData< Ta > &src)
 
void copyTo (float *dst)
 
float & at (int x, int y)
 
float interpolate (float x, float y, bool *outside=0)
 
float interpolate1D (int y, float x)
 
int numPixels () const
 
int pitch () const
 
void normalize ()
 
float mean ()
 
float & operator[] (int i)
 
void free ()
 
void writeAsCSV (const char *filename, const char *labels[]=0)
 

Additional Inherited Members

- Static Public Member Functions inherited from TImageData< float >
static TImageData alloc (int w, int h)
 
- Public Attributes inherited from TImageData< float >
float * data
 
int w
 
int h
 

Detailed Description

Definition at line 115 of file utils.h.

Constructor & Destructor Documentation

§ CImageData() [1/4]

CImageData::CImageData ( int  w,
int  h 
)
inline

Definition at line 117 of file utils.h.

117  : TImageData<float>(new float[w*h],w,h) {
118  }

§ CImageData() [2/4]

CImageData::CImageData ( const CImageData other)
inline

Definition at line 119 of file utils.h.

119  {
120  data=0; set(other);
121  }
float * data
Definition: utils.h:80

§ CImageData() [3/4]

CImageData::CImageData ( )
inline

Definition at line 122 of file utils.h.

122 {}

§ ~CImageData()

CImageData::~CImageData ( )
inline

Definition at line 123 of file utils.h.

123 { free(); }

§ CImageData() [4/4]

CImageData::CImageData ( const TImageData< float > &  src)
inline

Definition at line 124 of file utils.h.

124  {
125  data=0; set(src);
126  }
float * data
Definition: utils.h:80

Member Function Documentation

§ operator=() [1/2]

CImageData& CImageData::operator= ( const CImageData src)
inline

Definition at line 128 of file utils.h.

128  {
129  set(src);
130  return *this;
131  }

§ operator=() [2/2]

CImageData& CImageData::operator= ( const TImageData< float > &  src)
inline

Definition at line 132 of file utils.h.

132  {
133  set(src);
134  return *this;
135  }

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