Skip to content

Commit 57fbf84

Browse files
committed
rewording
1 parent 50f56db commit 57fbf84

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

episodes/08-connected-components.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ plt.axis("off")
325325

326326
If you are using an old version of Matplotlib you might get a warning
327327
`UserWarning: Low image data range; displaying image with stretched contrast.`
328-
or just see a visually blank image
328+
or just see a visually empty image.
329329

330330
What went wrong?
331-
When you hover over the blank image,
331+
When you hover over the image,
332332
the pixel values are shown as numbers in the lower corner of the viewer.
333333
You can see that some pixels have values different from `0`,
334334
so they are not actually all the same value.
@@ -343,7 +343,7 @@ print("min:", np.min(labeled_image))
343343
print("max:", np.max(labeled_image))
344344
```
345345

346-
Examining the output can give us a clue why the image appears blank.
346+
Examining the output can give us a clue why the image appears empty.
347347

348348
```output
349349
dtype: int32
@@ -777,9 +777,9 @@ the area by indexing the `object_areas` with the label values in `labeled_image`
777777

778778
```python
779779
object_areas = np.array([objf["area"] for objf in ski.measure.regionprops(labeled_image)])
780-
# prepend zero to object_areas array for background
780+
# prepend zero to object_areas array for background pixels
781781
object_areas = np.insert(0, obj=1, values=object_areas)
782-
# create image where the pixels in each object are equal to that objects area
782+
# create image where the pixels in each object are equal to that object's area
783783
colored_area_image = object_areas[labeled_image]
784784

785785
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)