Skip to content

Commit

Permalink
Merge pull request #314 from bear-rsg/thresholding-suggestions
Browse files Browse the repository at this point in the history
Problem with solution for thresholding exercise
  • Loading branch information
tobyhodges authored Dec 15, 2023
2 parents b9bc009 + c0e2929 commit 4c90046
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 4c90046

Please sign in to comment.