Skip to content

Commit c0e2929

Browse files
committed
explicit use of rgb2gray
1 parent b569d0a commit c0e2929

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)