Skip to content

Commit

Permalink
Merge pull request #19 from GothicArch/patch-1
Browse files Browse the repository at this point in the history
Update 02-visualisation.md
  • Loading branch information
tompollard authored Mar 28, 2024
2 parents b4a2cd3 + c53e1ad commit cabf88a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _episodes/02-visualisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ For more detail on image representation in Python, take a look at the [Data Carp

![RGB image](../fig/chair-layers-rgb.png){: width="600px"}

For simplicity, we'll instead load the images in greyscale. A greyscale image has two dimensions: height and width. Each value in the matrix represents a tone between black (0) and white (255).
For simplicity, we'll instead load the images in greyscale.
A greyscale image has two dimensions: height and width.
Greyscale images have only one channel.
Most greyscale images are 8 bits per channel or 16 bits per channel.
For a greyscale image with 8 bits per channel, each value in the matrix represents a tone between black (0) and white (255).

```python
image = cv2.imread(example, cv2.IMREAD_GRAYSCALE)
Expand Down

0 comments on commit cabf88a

Please sign in to comment.