Skip to content

Commit

Permalink
explicit use of rgb2gray
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyPike committed Dec 8, 2023
1 parent b569d0a commit c0e2929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion episodes/07-thresholding.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ you think would be a good value for the threshold `t`?
The histogram for the `data/shapes-02.jpg` image can be shown with

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

fig, ax = plt.subplots()
Expand Down

0 comments on commit c0e2929

Please sign in to comment.