Skip to content

Commit 2714d9d

Browse files
committed
center->centre
1 parent fe75d35 commit 2714d9d

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

episodes/02-image-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ groups of pixels.
211211
First let's load another copy of our eight, and then make it look like a zero.
212212
213213
To make it look like a zero,
214-
we need to change the number underlying the center most pixel to be 1.
214+
we need to change the number underlying the centremost pixel to be 1.
215215
With the help of those row and column headers,
216-
at this small scale we can determine the center pixel is in row labeled 2 and
216+
at this small scale we can determine the centre pixel is in row labeled 2 and
217217
column labeled 1.
218218
Using array slicing, we can then address and assign a new value to that position.
219219

episodes/03-skimage-images.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ because using floating point numbers is numerically more stable.
364364
> e.g. you will encounter an error if you try to run `skimage.colour.rgb2gray()`.
365365
> To account for this, we will use the US English spelling, `color`,
366366
> in example Python code throughout the lesson.
367+
> You will encounter a similar approach with "centre" and `center`.
367368
{: .callout }
368369
369370
~~~

episodes/04-drawing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ The function returns the rectangle as row (`rr`) and column (`cc`) coordinate ar
169169
>
170170
> Circles can be drawn with the `skimage.draw.disk()` function,
171171
> which takes two parameters:
172-
> the (y, x) point of the center of the circle,
172+
> the (y, x) point of the centre of the circle,
173173
> and the radius of the circle.
174174
> There is an optional `shape` parameter that can be supplied to this function.
175175
> It will limit the output coordinates for cases where the circle
@@ -438,7 +438,7 @@ The resulting masked image should look like this:
438438
> Your task is to write some code that will produce a mask that will
439439
> mask out everything except for the wells.
440440
> To help with this, you should use the text file `data/centers.txt` that contains
441-
> the (x, y) coordinates of the center of each of the 96 wells in this image.
441+
> the (x, y) coordinates of the centre of each of the 96 wells in this image.
442442
> You may assume that each of the wells has a radius of 16 pixels.
443443
>
444444
> Your program should produce output that looks like this:
@@ -483,17 +483,17 @@ The resulting masked image should look like this:
483483
>
484484
> If you spent some time looking at the contents of
485485
> the `data/centers.txt` file from the previous challenge,
486-
> you may have noticed that the centers of each well in the image are very regular.
486+
> you may have noticed that the centres of each well in the image are very regular.
487487
> *Assuming* that the images are scanned in such a way that
488488
> the wells are always in the same place,
489489
> and that the image is perfectly oriented
490490
> (i.e., it does not slant one way or another),
491491
> we could produce our well plate mask without having to
492-
> read in the coordinates of the centers of each well.
493-
> Assume that the center of the upper left well in the image is at
492+
> read in the coordinates of the centres of each well.
493+
> Assume that the centre of the upper left well in the image is at
494494
> location x = 91 and y = 108, and that there are
495-
> 70 pixels between each center in the x dimension and
496-
> 72 pixels between each center in the y dimension.
495+
> 70 pixels between each centre in the x dimension and
496+
> 72 pixels between each centre in the y dimension.
497497
> Each well still has a radius of 16 pixels.
498498
> Write a Python program that produces the same output image as in the previous challenge,
499499
> but *without* having to read in the `centers.txt` file.

episodes/05-creating-histograms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ Finally we label our axes and display the histogram, shown here:
391391
> specifically, the seventh well from the left in the topmost row,
392392
> which shows Erythrosin B reacting with water.
393393
>
394-
> Hover over the image with your mouse to find the center of that well
394+
> Hover over the image with your mouse to find the centre of that well
395395
> and the radius (in pixels) of the well.
396396
> Then create a circular mask to select only the desired well.
397397
> Then, use that mask to apply the colour histogram operation to that well.

episodes/06-blurring.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ The *kernel* is another group of pixels (a separate matrix / small image),
106106
of the same dimensions as the rectangular group of pixels in the image,
107107
that moves along with the pixel being worked on by the filter.
108108
The width and height of the kernel must be an odd number,
109-
so that the pixel being worked on is always in its center.
109+
so that the pixel being worked on is always in its centre.
110110
In the example shown above, the kernel is square, with a dimension of seven pixels.
111111

112112
To apply the kernel to the current pixel,
113113
an average of the the colour values of the pixels surrounding it is calculated,
114114
weighted by the values in the kernel.
115-
In a Gaussian blur, the pixels nearest the center of the kernel are
116-
given more weight than those far away from the center.
115+
In a Gaussian blur, the pixels nearest the centre of the kernel are
116+
given more weight than those far away from the centre.
117117
This averaging is done on a channel-by-channel basis,
118118
and the average channel values become the new value for the pixel in
119119
the filtered image.
@@ -128,7 +128,7 @@ consider this plot of the two-dimensional Gaussian function:
128128
Imagine that plot laid over the kernel for the Gaussian blur filter.
129129
The height of the plot corresponds to the weight given to the underlying pixel
130130
in the kernel.
131-
I.e., the pixels close to the center become more important to
131+
I.e., the pixels close to the centre become more important to
132132
the filtered pixel colour than the pixels close to the outer limits of the kernel.
133133
The shape of the Gaussian function is controlled via its standard deviation,
134134
or sigma.
@@ -143,16 +143,16 @@ of the cat image above:
143143

144144
![Image corner pixels](../fig/cat-corner-blue.png)
145145

146-
The filter is going to determine the new blue channel value for the center
146+
The filter is going to determine the new blue channel value for the centre
147147
pixel -- the one that currently has the value 86. The filter calculates a
148148
weighted average of all the blue channel values in the kernel
149-
giving higher weight to the pixels near the center of the
149+
giving higher weight to the pixels near the centre of the
150150
kernel.
151151

152152
![Image multiplication](../fig/combination.png)
153153

154154
This weighted average, the sum of the multiplications,
155-
becomes the new value for the center pixel (3, 3).
155+
becomes the new value for the centre pixel (3, 3).
156156
The same process would be used to determine the green and red channel values,
157157
and then the kernel would be moved over to apply the filter to the
158158
next pixel in the image.

episodes/08-connected-components.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ In order to understand pixel neighborhoods
7171
we will introduce the concept of "jumps" between pixels.
7272
The jumps follow two rules:
7373
First rule is that one jump is only allowed along the column, or the row.
74-
Diagonal jumps are not allowed. So, from a center pixel, denoted with `o`,
74+
Diagonal jumps are not allowed.
75+
So, from a centre pixel, denoted with `o`,
7576
only the pixels indicated with an `x` are reachable:
7677

7778
~~~
@@ -103,7 +104,7 @@ in both row and column direction.
103104

104105
All pixels reachable with one, or two jumps form the __2-jump__ neighborhood.
105106
The grid below illustrates the pixels reachable from
106-
the center pixel `o` with a single jump, highlighted with a `1`,
107+
the centre pixel `o` with a single jump, highlighted with a `1`,
107108
and the pixels reachable with 2 jumps with a `2`.
108109

109110
~~~

0 commit comments

Comments
 (0)