@@ -40,7 +40,7 @@ we need to spend some time understanding how these abstractions work.
40
40
41
41
## Pixels
42
42
43
- It is important to realize that images are stored as rectangular arrays
43
+ It is important to realise that images are stored as rectangular arrays
44
44
of hundreds, thousands, or millions of discrete "picture elements,"
45
45
otherwise known as * pixels* .
46
46
Each pixel can be thought of as a single square point of coloured light.
@@ -526,7 +526,7 @@ A larger number in a channel means that more of that primary colour is present.
526
526
>
527
527
> > ## Solution
528
528
> >
529
- > > 1. (255, 0, 0) represents red, because the red channel is maximized , while
529
+ > > 1. (255, 0, 0) represents red, because the red channel is maximised , while
530
530
> > the other two channels have the minimum values.
531
531
> > 2. (0, 255, 0) represents green.
532
532
> > 3. (0, 0, 255) represents blue.
@@ -596,7 +596,7 @@ Such an image is an example of *raster graphics*.
596
596
597
597
## Image formats
598
598
599
- Although the images we will manipulate in our programs are conceptualized as
599
+ Although the images we will manipulate in our programs are conceptualised as
600
600
rectangular arrays of RGB triplets,
601
601
they are not necessarily created, stored, or transmitted in that format.
602
602
There are several image formats we might encounter,
@@ -611,7 +611,7 @@ Some formats we might encounter, and their file extensions, are shown in this ta
611
611
612
612
## BMP
613
613
614
- The file format that comes closest to our preceding conceptualization of images
614
+ The file format that comes closest to our preceding conceptualisation of images
615
615
is the Device-Independent Bitmap, or BMP, file format.
616
616
BMP files store raster graphics images as long sequences of binary-encoded numbers
617
617
that specify the colour of each pixel in the image.
@@ -714,12 +714,12 @@ If you already know, you can skip to the challenge below.
714
714
Since image files can be very large,
715
715
various *compression* schemes exist for saving
716
716
(approximately) the same information while using less space.
717
- These compression techniques can be categorized as *lossless* or *lossy*.
717
+ These compression techniques can be categorised as *lossless* or *lossy*.
718
718
719
719
### Lossless compression
720
720
721
721
In lossless image compression,
722
- we apply some algorithm (i.e., a computerized procedure) to the image,
722
+ we apply some algorithm (i.e., a computerised procedure) to the image,
723
723
resulting in a file that is significantly smaller than
724
724
the uncompressed BMP file equivalent would be.
725
725
Then, when we wish to load and view or process the image,
@@ -949,7 +949,7 @@ take precautions to always preserve the original files**.
949
949
950
950
## Summary of image formats used in this lesson
951
951
952
- The following table summarizes the characteristics of the BMP, JPEG, and TIFF
952
+ The following table summarises the characteristics of the BMP, JPEG, and TIFF
953
953
image formats:
954
954
955
955
| Format | Compression | Metadata | Advantages | Disadvantages |
0 commit comments