|
PetaVision
Alpha
|
Public Types | |
| enum | Anchor { CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, NORTHWEST } |
Public Member Functions | |
| Buffer (int width, int height, int features) | |
| Buffer (const std::vector< T > &data, int width, int height, int features) | |
| Buffer (const T *data, int width, int height, int features) | |
| std::vector< T > | asVector () const |
| T const | at (int x, int y, int feature) const |
| T const | at (int k) const |
| void | crop (int newWidth, int newHeight, enum Anchor anchor) |
| void | flip (bool xFlip, bool yFlip) |
| int | getFeatures () const |
| int | getHeight () const |
| int | getTotalElements () const |
| int | getWidth () const |
| void | grow (int newWidth, int newHeight, enum Anchor anchor) |
| void | resize (int width, int height, int features) |
| void | set (int x, int y, int feature, T value) |
| void | set (int k, T value) |
| void | set (const std::vector< T > &vector, int width, int height, int features) |
| void | set (const T *data, int width, int height, int features) |
| void | set (Buffer< T > other) |
| void | translate (int offsetX, int offsetY) |
Protected Member Functions | |
| int | index (int x, int y, int f) const |
Static Protected Member Functions | |
| static int | getAnchorX (enum Anchor anchor, int smallerWidth, int biggerWidth) |
| static int | getAnchorY (enum Anchor anchor, int smallerHeight, int biggerHeight) |
Protected Attributes | |
| std::vector< T > | mData |
| int | mFeatures = 0 |
| int | mHeight = 0 |
| int | mWidth = 0 |
Definition at line 9 of file Buffer.hpp.