Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AprilTags::FloatImage Class Reference

Represent an image as a vector of floats in [0,1]. More...

#include <FloatImage.h>


Detailed Description

Represent an image as a vector of floats in [0,1].

Definition at line 15 of file FloatImage.h.

List of all members.

Public Member Functions

 FloatImage ()
 Default constructor.
 FloatImage (int widthArg, int heightArg)
 Construct an empty image.
 FloatImage (int widthArg, int heightArg, const std::vector< float > &pArg)
 Constructor that copies pixels from an array.
 FloatImage (const DualCoding::Sketch< DualCoding::uchar > &sketch)
 Constructor that copies pixels from a Sketch<uchar>
FloatImageoperator= (const FloatImage &other)
float get (int x, int y) const
void set (int x, int y, float v)
int getWidth () const
int getHeight () const
int getNumFloatImagePixels () const
const std::vector< float > & getFloatImagePixels () const
void decimateAvg ()
 TODO: Fix decimateAvg function. DO NOT USE!
void normalize ()
 Rescale all values so that they are between [0,1].
void filterFactoredCentered (const std::vector< float > &fhoriz, const std::vector< float > &fvert)
template<typename T >
void copyToSketch (DualCoding::Sketch< T > &sketch)
void printMinMax () const

Static Public Member Functions

static std::vector< floatsketchToFloats (const DualCoding::Sketch< DualCoding::uchar > &sketch)

Private Attributes

int width
int height
std::vector< floatpixels

Constructor & Destructor Documentation

AprilTags::FloatImage::FloatImage (  ) 

Default constructor.

Definition at line 5 of file FloatImage.cc.

AprilTags::FloatImage::FloatImage ( int  widthArg,
int  heightArg 
)

Construct an empty image.

Definition at line 7 of file FloatImage.cc.

AprilTags::FloatImage::FloatImage ( int  widthArg,
int  heightArg,
const std::vector< float > &  pArg 
)

Constructor that copies pixels from an array.

Definition at line 10 of file FloatImage.cc.

AprilTags::FloatImage::FloatImage ( const DualCoding::Sketch< DualCoding::uchar > &  sketch  )  [explicit]

Constructor that copies pixels from a Sketch<uchar>

Definition at line 13 of file FloatImage.cc.


Member Function Documentation

template<typename T >
void AprilTags::FloatImage::copyToSketch ( DualCoding::Sketch< T > &  sketch  ) 

Definition at line 56 of file FloatImage.h.

void AprilTags::FloatImage::decimateAvg (  ) 

TODO: Fix decimateAvg function. DO NOT USE!

Definition at line 34 of file FloatImage.cc.

void AprilTags::FloatImage::filterFactoredCentered ( const std::vector< float > &  fhoriz,
const std::vector< float > &  fvert 
)

Definition at line 56 of file FloatImage.cc.

Referenced by AprilTags::TagDetector::extractTags().

float AprilTags::FloatImage::get ( int  x,
int  y 
) const

Definition at line 37 of file FloatImage.h.

Referenced by AprilTags::Edge::calcEdges(), and AprilTags::TagDetector::extractTags().

const std::vector<float>& AprilTags::FloatImage::getFloatImagePixels (  )  const

Definition at line 43 of file FloatImage.h.

Referenced by copyToSketch().

int AprilTags::FloatImage::getHeight (  )  const

Definition at line 41 of file FloatImage.h.

Referenced by AprilTags::TagDetector::extractTags(), and AprilTags::Quad::search().

int AprilTags::FloatImage::getNumFloatImagePixels (  )  const

Definition at line 42 of file FloatImage.h.

Referenced by copyToSketch().

int AprilTags::FloatImage::getWidth (  )  const
void AprilTags::FloatImage::normalize (  ) 

Rescale all values so that they are between [0,1].

Definition at line 47 of file FloatImage.cc.

FloatImage & AprilTags::FloatImage::operator= ( const FloatImage other  ) 

Definition at line 16 of file FloatImage.cc.

void AprilTags::FloatImage::printMinMax (  )  const

Definition at line 81 of file FloatImage.cc.

void AprilTags::FloatImage::set ( int  x,
int  y,
float  v 
)

Definition at line 38 of file FloatImage.h.

std::vector< float > AprilTags::FloatImage::sketchToFloats ( const DualCoding::Sketch< DualCoding::uchar > &  sketch  )  [static]

Definition at line 25 of file FloatImage.cc.


Member Data Documentation

Definition at line 18 of file FloatImage.h.

Referenced by getHeight(), and getNumFloatImagePixels().

std::vector<float> AprilTags::FloatImage::pixels [private]

Definition at line 19 of file FloatImage.h.

Referenced by get(), getFloatImagePixels(), and set().

Definition at line 17 of file FloatImage.h.

Referenced by get(), getNumFloatImagePixels(), getWidth(), and set().


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

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