Skip to content

Commit 4c90046

Browse files
authored
Merge pull request #314 from bear-rsg/thresholding-suggestions
Problem with solution for thresholding exercise
2 parents b9bc009 + c0e2929 commit 4c90046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

episodes/07-thresholding.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ you think would be a good value for the threshold `t`?
228228
The histogram for the `data/shapes-02.jpg` image can be shown with
229229

230230
```python
231-
gray_shapes = iio.imread(uri="data/shapes-02.jpg", mode="L")
231+
shapes = iio.imread(uri="data/shapes-02.jpg")
232+
gray_shapes = ski.color.rgb2gray(shapes)
232233
histogram, bin_edges = np.histogram(gray_shapes, bins=256, range=(0.0, 1.0))
233234

234235
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)