Represent an image as a vector of floats in [0,1]. More...
#include <FloatImage.h>
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]. | |
FloatImage & | operator= (const FloatImage &other) |
void | printMinMax () const |
void | set (int x, int y, float v) |
Private Attributes | |
int | height |
std::vector< float > | pixels |
int | width |
Represent an image as a vector of floats in [0,1].
Definition at line 15 of file FloatImage.h.
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.
void AprilTags::FloatImage::copyToSketch | ( | DualCoding::Sketch< T > & | sketch | ) | [inline] |
Definition at line 51 of file FloatImage.h.
void AprilTags::FloatImage::decimateAvg | ( | ) |
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.
int AprilTags::FloatImage::getNumFloatImagePixels | ( | ) | const [inline] |
Definition at line 39 of file FloatImage.h.
int AprilTags::FloatImage::getWidth | ( | ) | const [inline] |
Definition at line 37 of file FloatImage.h.
void AprilTags::FloatImage::normalize | ( | ) |
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.
void AprilTags::FloatImage::printMinMax | ( | ) | const |
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.
int AprilTags::FloatImage::height [private] |
Definition at line 18 of file FloatImage.h.
std::vector<float> AprilTags::FloatImage::pixels [private] |
Definition at line 19 of file FloatImage.h.
int AprilTags::FloatImage::width [private] |
Definition at line 17 of file FloatImage.h.