We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e171df5 + 8aede96 commit 893e6e6Copy full SHA for 893e6e6
episodes/05-creating-histograms.md
@@ -201,6 +201,9 @@ it to the `np.histogram` function.
201
# read the image as grayscale from the outset
202
plant_seedling = iio.imread(uri="data/plant-seedling.jpg", mode="L")
203
204
+# convert the image to float dtype with a value range from 0 to 1
205
+plant_seedling = ski.util.img_as_float(plant_seedling)
206
+
207
# display the image
208
fig, ax = plt.subplots()
209
plt.imshow(plant_seedling, cmap="gray")
0 commit comments