Public Member Functions | Private Attributes
AprilTags::FloatImage Class Reference

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

#include <FloatImage.h>

List of all members.

Public Member Functions

template<typename T >
void copyToSketch (DualCoding::Sketch< T > &sketch)
void decimateAvg ()
 TODO: Fix decimateAvg function. DO NOT USE!
void filterFactoredCentered (const std::vector< float > &fhoriz, const std::vector< float > &fvert)
 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.
float get (int x, int y) const
const std::vector< float > & getFloatImagePixels () const
int getHeight () const
int getNumFloatImagePixels () const
int getWidth () const
void normalize ()
 Rescale all values so that they are between [0,1].
FloatImageoperator= (const FloatImage &other)
void printMinMax () const
void set (int x, int y, float v)

Private Attributes

int height
std::vector< float > pixels
int width

Detailed Description

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

Definition at line 15 of file FloatImage.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 7 of file FloatImage.cc.

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

Construct an empty image.

Definition at line 9 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 12 of file FloatImage.cc.


Member Function Documentation

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

Definition at line 51 of file FloatImage.h.

TODO: Fix decimateAvg function. DO NOT USE!

Definition at line 24 of file FloatImage.cc.

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

Definition at line 46 of file FloatImage.cc.

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

Definition at line 34 of file FloatImage.h.

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

Definition at line 40 of file FloatImage.h.

int AprilTags::FloatImage::getHeight ( ) const [inline]

Definition at line 38 of file FloatImage.h.

Definition at line 39 of file FloatImage.h.

int AprilTags::FloatImage::getWidth ( ) const [inline]

Definition at line 37 of file FloatImage.h.

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

Definition at line 37 of file FloatImage.cc.

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

Definition at line 15 of file FloatImage.cc.

Definition at line 71 of file FloatImage.cc.

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

Definition at line 35 of file FloatImage.h.


Member Data Documentation

Definition at line 18 of file FloatImage.h.

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

Definition at line 19 of file FloatImage.h.

Definition at line 17 of file FloatImage.h.


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


apriltags
Author(s): Mitchell Wills
autogenerated on Thu Aug 27 2015 12:23:28