Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

RawImage Class Reference

#include <RawImage.h>


Detailed Description

Definition at line 7 of file RawImage.h.

List of all members.

Public Member Functions

 RawImage (unsigned int width, unsigned int height)
floatoperator() (int x, int y)
floatoperator() (unsigned int x, unsigned int y)
float operator() (float x, float y)
fmat::Column< 2 > gradient (float x, float y)
fmat::Matrix< 2, 2 > gradientCov (float x, float y)
fmat::Matrix< 2, 2 > spatialGradientMatrix (float center_x, float center_y, int window)
float imageScore (float x, float y, int window)
void loadFromRawY ()
void buildNextLayer (RawImage &img)
unsigned int getHeight ()
unsigned int getWidth ()
void printImage ()

Private Member Functions

unsigned int clampX (int x)
unsigned int clampY (int y)

Private Attributes

unsigned int width
unsigned int height
std::vector< floatimageData

Constructor & Destructor Documentation

RawImage::RawImage ( unsigned int  width,
unsigned int  height 
)

Definition at line 8 of file RawImage.cc.


Member Function Documentation

void RawImage::buildNextLayer ( RawImage img  ) 

Definition at line 85 of file RawImage.cc.

unsigned int RawImage::clampX ( int  x  )  [private]

Definition at line 12 of file RawImage.cc.

Referenced by operator()().

unsigned int RawImage::clampY ( int  y  )  [private]

Definition at line 21 of file RawImage.cc.

Referenced by operator()().

unsigned int RawImage::getHeight (  ) 

Definition at line 27 of file RawImage.h.

unsigned int RawImage::getWidth (  ) 

Definition at line 28 of file RawImage.h.

fmat::Column< 2 > RawImage::gradient ( float  x,
float  y 
)

Definition at line 109 of file RawImage.cc.

Referenced by OpticalFlow::iterativeLucasKanade().

fmat::Matrix< 2, 2 > RawImage::gradientCov ( float  x,
float  y 
)

Definition at line 116 of file RawImage.cc.

Referenced by spatialGradientMatrix().

float RawImage::imageScore ( float  x,
float  y,
int  window 
)

Definition at line 142 of file RawImage.cc.

void RawImage::loadFromRawY (  ) 

Definition at line 67 of file RawImage.cc.

float RawImage::operator() ( float  x,
float  y 
)

This is an implementation of bilinear interpolation in order to handle non-integer pixel indices.

Definition at line 52 of file RawImage.cc.

float & RawImage::operator() ( unsigned int  x,
unsigned int  y 
)

Definition at line 43 of file RawImage.cc.

float & RawImage::operator() ( int  x,
int  y 
)

Very Important Note:

This works in x,y coordinates instead of in row,width coordinates.

Definition at line 37 of file RawImage.cc.

void RawImage::printImage (  ) 

Definition at line 101 of file RawImage.cc.

fmat::Matrix< 2, 2 > RawImage::spatialGradientMatrix ( float  center_x,
float  center_y,
int  window 
)

Definition at line 129 of file RawImage.cc.

Referenced by imageScore(), and OpticalFlow::iterativeLucasKanade().


Member Data Documentation

unsigned int RawImage::height [private]

Definition at line 34 of file RawImage.h.

Referenced by buildNextLayer(), clampY(), loadFromRawY(), and printImage().

std::vector<float> RawImage::imageData [private]

Definition at line 35 of file RawImage.h.

Referenced by loadFromRawY(), and operator()().

unsigned int RawImage::width [private]

Definition at line 33 of file RawImage.h.

Referenced by buildNextLayer(), clampX(), loadFromRawY(), operator()(), and printImage().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:15 2016 by Doxygen 1.6.3