5.3.4.122. Function tools_linear_2d_nrc_rgb8matrix
Defined in File tools.h
5.3.4.122.1. Function Documentation
-
void tools_linear_2d_nrc_rgb8matrix(const rgb8_t *X, const int i0, const int i1, const int j0, const int j1, const rgb8_t **Y)
Convert a 1D (linear) array into a 2D array (24-bit RGB).
- Parameters
X – Input 1D array (1D array \([(i1 - i0 + 1) \times (j1 - j0 + 1)]\)).
i0 – First \(y\) index in the 2D array (included).
i1 – Last \(y\) index in the 2D array (included).
j0 – First \(x\) index in the 2D array (included).
j1 – Last \(x\) index in the 2D array (included).
Y – Output matrix (2D array \([i1 - i0 + 1][j1 - j0 + 1]\)).