A gray-scale image is calculated, and the computer sees it as a two-dimensional array. Color pictures (RGB) can be viewed as three two-dimensional arrays.
- RGB image can be seen as the following three dimensions combined together.
- Each dimension can be regarded as a two-dimensional array
- The entire color picture can be seen as a combination of three two-dimensional numbers. Comprehend by the computer while calculating
For how to represent the multi-dimensional array, you can refer to https://blog.csdn.net/JACKSONMHLK/article/details/107023188