Skip to content

Commit

Permalink
Update 02-visualisation.md
Browse files Browse the repository at this point in the history
“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).”
  • Loading branch information
GothicArch authored Sep 21, 2023
1 parent 4e58a89 commit c53e1ad
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 c53e1ad

Please sign in to comment.