XCSF
1.4.7
XCSF learning classifier system
|
Image handling functions. More...
Go to the source code of this file.
Functions | |
void | col2im (const double *data_col, const int channels, const int height, const int width, const int ksize, const int stride, const int pad, double *data_im) |
Transforms a column vector to an image vector. More... | |
void | im2col (const double *data_im, const int channels, const int height, const int width, const int ksize, const int stride, const int pad, double *data_col) |
Transforms an image vector to a column vector. More... | |
void col2im | ( | const double * | data_col, |
const int | channels, | ||
const int | height, | ||
const int | width, | ||
const int | ksize, | ||
const int | stride, | ||
const int | pad, | ||
double * | data_im | ||
) |
Transforms a column vector to an image vector.
Used for GEMM convolutional backward propagation.
[in] | data_col | Input column vector. |
[in] | channels | Number of image channels. |
[in] | height | Image height. |
[in] | width | Image width. |
[in] | ksize | Kernel size. |
[in] | stride | Kernel stride. |
[in] | pad | Kernel padding. |
[out] | data_im | The resulting image vector. |
Definition at line 63 of file image.c.
References col2im_add_pixel().
Referenced by neural_layer_convolutional_backward().
void im2col | ( | const double * | data_im, |
const int | channels, | ||
const int | height, | ||
const int | width, | ||
const int | ksize, | ||
const int | stride, | ||
const int | pad, | ||
double * | data_col | ||
) |
Transforms an image vector to a column vector.
Used for GEMM convolutional forward propagation.
[in] | data_im | Image vector of dimension: height × width × channels. |
[in] | channels | Number of image channels. |
[in] | height | Image height. |
[in] | width | Image width. |
[in] | ksize | Kernel size. |
[in] | stride | Kernel stride. |
[in] | pad | Kernel padding. |
[out] | data_col | The resulting column vector. |
Definition at line 100 of file image.c.
References im2col_get_pixel().
Referenced by neural_layer_convolutional_backward(), and neural_layer_convolutional_forward().