|
XCSF 1.4.8
XCSF learning classifier system
|
Image handling functions. More...
#include "image.h"Go to the source code of this file.
Functions | |
| static void | col2im_add_pixel (double *im, const int height, const int width, int row, int col, const int channel, const int pad, const double val) |
| static double | im2col_get_pixel (const double *im, const int height, const int width, int row, int col, const int channel, const int pad) |
| 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. | |
| 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. | |
| 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().
|
static |
| 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().