From 75d05ce5d10ce5d153d1fe753ea7932e81858433 Mon Sep 17 00:00:00 2001 From: PikeJA Date: Wed, 13 Nov 2024 06:43:14 +0000 Subject: [PATCH] typos --- episodes/02-image-basics.md | 2 +- episodes/08-connected-components.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/episodes/02-image-basics.md b/episodes/02-image-basics.md index d085c4ad7..26d594315 100644 --- a/episodes/02-image-basics.md +++ b/episodes/02-image-basics.md @@ -447,7 +447,7 @@ ax.imshow(three_colours, cmap="gray") ![](fig/grayscale.png){alt='Image in greyscale'} -Above we have exactly the same underying data matrix, but in greyscale. +Above we have exactly the same underlying data matrix, but in greyscale. Zero maps to black, 255 maps to white, and 128 maps to medium grey. Here we only have a single channel in the data and utilize a grayscale color map to represent the luminance, or intensity of the data and correspondingly diff --git a/episodes/08-connected-components.md b/episodes/08-connected-components.md index db9ef7a2b..d21ca9890 100644 --- a/episodes/08-connected-components.md +++ b/episodes/08-connected-components.md @@ -610,7 +610,7 @@ The labels of the objects are also returned by `ski.measure.regionprops`. We have already seen that we can create boolean arrays using comparison operators. Here we can use `object_areas > min_area` to produce an array that has the same dimension as `object_labels`. -It can then used to select the labels of objects whose area is +It can then be used to select the labels of objects whose area is greater than `min_area` by indexing: ```python