Skip to content

Commit bb7a21e

Browse files
author
Robert (Bob) Turner
committed
note on matrices, arrays, pixels
1 parent b4c5b49 commit bb7a21e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

episodes/02-image-basics.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ let's start our exploration with 15 pixels in a 5 X 3 matrix with 2 colours and
7575
work our way up to that complexity,
7676
but first the necessary imports.
7777

78+
> ## Matrices, arrays, images and pixels
79+
> The **matrix** is mathematical concept - numbers evenly arranged in a rectangle. This can be a two dimensional rectangle,
80+
> like the shape of the screen you're looking at now. Or it could be a three dimensional equivalent, a cuboid, or have
81+
> even more dimensions, but always keeping the evenly spaced arrangement of numbers. In computing, **array** refers
82+
> to a structure in the computer's memory where data is stored in evenly-spaced **elements**. This is strongly analogous
83+
> to a matrix. A `numpy` array is a **type** of variable (a simpler example of a type is an integer). For our purposes,
84+
> the distinction between matrices and arrays is not important, we don't really care how the computer arranges our data
85+
> in its memory. The important thing is that the computer stores values describing the pixels in images, as arrays. And
86+
> the terms matrix and array can be used intechangably.
87+
{: .callout}
7888
~~~
7989
"""
8090
* Python libraries for learning and performing image processing.*

0 commit comments

Comments
 (0)