GClasses
|
Image abstraction to facilitate convolution.
#include <GBlock.h>
Public Member Functions | |
Image (size_t width, size_t height, size_t channels) | |
Image (GVec *data, const Image ©MyParams) | |
double & | at (size_t x, size_t y, size_t z=0) |
size_t | index (size_t x, size_t y, size_t z) const |
double | read (size_t x, size_t y, size_t z=0) const |
Public Attributes | |
size_t | channels |
GVec * | data |
image data More... | |
size_t | dx |
viewport data More... | |
size_t | dy |
size_t | dz |
offset More... | |
bool | flip |
whether to "flip" the image (i.e. 180 degree rotation) More... | |
size_t | height |
bool | interlaced |
bool | invertStride |
whether the stride should be inverted (i.e. sx or sy zeroes between each value) More... | |
size_t | px |
size_t | py |
padding More... | |
size_t | sx |
size_t | sy |
stride More... | |
size_t | width |
Static Public Attributes | |
static size_t | npos |
GClasses::GBlockConvolutional2D::Image::Image | ( | size_t | width, |
size_t | height, | ||
size_t | channels | ||
) |
double& GClasses::GBlockConvolutional2D::Image::at | ( | size_t | x, |
size_t | y, | ||
size_t | z = 0 |
||
) |
size_t GClasses::GBlockConvolutional2D::Image::index | ( | size_t | x, |
size_t | y, | ||
size_t | z | ||
) | const |
double GClasses::GBlockConvolutional2D::Image::read | ( | size_t | x, |
size_t | y, | ||
size_t | z = 0 |
||
) | const |
size_t GClasses::GBlockConvolutional2D::Image::channels |
GVec* GClasses::GBlockConvolutional2D::Image::data |
image data
|
mutable |
viewport data
|
mutable |
|
mutable |
offset
|
mutable |
whether to "flip" the image (i.e. 180 degree rotation)
size_t GClasses::GBlockConvolutional2D::Image::height |
bool GClasses::GBlockConvolutional2D::Image::interlaced |
|
mutable |
whether the stride should be inverted (i.e. sx or sy zeroes between each value)
|
static |
|
mutable |
|
mutable |
padding
|
mutable |
|
mutable |
stride
size_t GClasses::GBlockConvolutional2D::Image::width |