How can a picture be one point?
Start with a tiny image: two rows, two columns, four brightness values. Read the top row from left to right, then the bottom row. The image becomes an ordered list:
Nothing has disappeared. We have changed the arrangement of the numbers, and can fold the list back into the original square. The order matters: every image must use the same reading order.
Four entries, four coordinates
You already know how two coordinates locate one point on a plane. The same idea works with four coordinates, even though we cannot draw all four axes at once. One image is one point; its pixels supply its coordinates.
A grayscale image with 64 rows and 64 columns has coordinates. A collection of 100 such images is 100 points in that 4096-dimensional space. Adding images adds points; increasing image resolution adds coordinates.
A collection becomes a matrix
Stack two image vectors as rows:
Each row is an observation. Each column records the same pixel position across observations. For a color image, include red, green, and blue values in a fixed order: a RGB image has coordinates.
An array can store these values with separate height, width, and channel axes. Those storage axes are distinct from the number of coordinates in the flattened vector.
Check the picture
If we collect 200 images, each with 10 rows and 10 columns, how many points and coordinates do we have?
Answer: 200 points, each with 100 coordinates. A row-per-image data matrix has shape .
