I have data of 209 images of dimension 64x64x3 stored in an array X, where height (horizontal-pixels=64), width(vertical-pixels=64), and depth(RGB value=3).
X.shape = (64,64,3)
I use the command “X_flatten = X.reshape(X.shape[0], -1).T”. Now I have new array X_flatten which is of dimension (12288, 209).
This means that in each column of X_flatten, I have 12288 values that make up each of the 209 images.
My question is that, how are these values arranged in each column?
Is it true that in each column we have, in the first 4096 rows, only the Red pixel values, and then in the next 4096 rows, we have the Green-Pixel values, and then in the final 4096 rows, we have the Blue-Pixel values?
To make it easier to understand I have attached 2 images. Can you identify for me which of the format is correct?
For reference this is from the lab:
Logistic_Regression_with_a_Neural_Network_mindset
2- Overview of the problem set
- Exercise 2