Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PGMImg Class Reference

#include <PGMImg.h>


Detailed Description

Definition at line 11 of file PGMImg.h.

List of all members.

Public Member Functions

 PGMImg ()
 PGMImg (PGMImg *img1, PGMImg *img2, std::vector< keypointPair * > *matches)
 ~PGMImg ()
int getHeight ()
int getWidth ()
void fromFile (std::string imageFilename)
void toFile (std::string imageFilename)
unsigned char getPixel (int x, int y)
void drawLine (int x1, int y1, int x2, int y2, unsigned char color)
void drawKeypoint (keypoint *key)
void drawKeypoints (std::vector< keypoint * > keys)
void translate (int x, int y, unsigned char color)
void rotate (double s, unsigned char color)
void doubleSize (double s, unsigned char color)
void halfSize (double s, unsigned char color)
void cropImage (int startx, int starty, int endx, int endy, unsigned char color)

Public Attributes

int id

Private Member Functions

void setPixel (int x, int y, unsigned char color)
 PGMImg (const PGMImg &)
PGMImgoperator= (const PGMImg &)

Private Attributes

int width
int height
int base
unsigned char * pixels
std::string filename

Constructor & Destructor Documentation

PGMImg::PGMImg (  ) 

Definition at line 20 of file PGMImg.cc.

PGMImg::PGMImg ( PGMImg img1,
PGMImg img2,
std::vector< keypointPair * > *  matches 
)

Definition at line 64 of file PGMImg.cc.

PGMImg::~PGMImg (  ) 

Definition at line 102 of file PGMImg.cc.

PGMImg::PGMImg ( const PGMImg  )  [private]

Member Function Documentation

void PGMImg::cropImage ( int  startx,
int  starty,
int  endx,
int  endy,
unsigned char  color 
)

Definition at line 412 of file PGMImg.cc.

void PGMImg::doubleSize ( double  s,
unsigned char  color 
)

Definition at line 360 of file PGMImg.cc.

void PGMImg::drawKeypoint ( keypoint key  ) 

Definition at line 140 of file PGMImg.cc.

Referenced by drawKeypoints(), and PGMImg().

void PGMImg::drawKeypoints ( std::vector< keypoint * >  keys  ) 

Definition at line 172 of file PGMImg.cc.

void PGMImg::drawLine ( int  x1,
int  y1,
int  x2,
int  y2,
unsigned char  color 
)

Definition at line 178 of file PGMImg.cc.

Referenced by drawKeypoint(), and PGMImg().

int PGMImg::getHeight (  ) 

Definition at line 111 of file PGMImg.cc.

Referenced by convertPGMImgToImageBuffer().

unsigned char PGMImg::getPixel ( int  x,
int  y 
)

Definition at line 14 of file PGMImg.cc.

Referenced by convertPGMImgToImageBuffer(), PGMImg(), and toFile().

int PGMImg::getWidth (  ) 

Definition at line 115 of file PGMImg.cc.

Referenced by convertPGMImgToImageBuffer().

void PGMImg::halfSize ( double  s,
unsigned char  color 
)

Definition at line 382 of file PGMImg.cc.

PGMImg& PGMImg::operator= ( const PGMImg  )  [private]
void PGMImg::rotate ( double  s,
unsigned char  color 
)

Definition at line 278 of file PGMImg.cc.

void PGMImg::setPixel ( int  x,
int  y,
unsigned char  color 
) [private]

Definition at line 9 of file PGMImg.cc.

Referenced by cropImage(), doubleSize(), drawLine(), fromFile(), halfSize(), PGMImg(), rotate(), and translate().

void PGMImg::toFile ( std::string  imageFilename  ) 

Definition at line 119 of file PGMImg.cc.

void PGMImg::translate ( int  x,
int  y,
unsigned char  color 
)

Definition at line 231 of file PGMImg.cc.


Member Data Documentation

int PGMImg::base [private]

Definition at line 15 of file PGMImg.h.

Referenced by fromFile(), PGMImg(), and toFile().

std::string PGMImg::filename [private]

Definition at line 17 of file PGMImg.h.

Referenced by fromFile().

Definition at line 22 of file PGMImg.h.

unsigned char* PGMImg::pixels [private]

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

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