File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,9 @@ it to the `np.histogram` function.
201
201
# read the image as grayscale from the outset
202
202
plant_seedling = iio.imread(uri = " data/plant-seedling.jpg" , mode = " L" )
203
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
+
204
207
# display the image
205
208
fig, ax = plt.subplots()
206
209
plt.imshow(plant_seedling, cmap = " gray" )
Original file line number Diff line number Diff line change 7
7
"episodes/02-image-basics.md" "96ffcef0c69114438aee896d82b1525c" "site/built/02-image-basics.md" "2023-09-09"
8
8
"episodes/03-skimage-images.md" "ff87470aab8bb05c7d8038dabe7ed0f9" "site/built/03-skimage-images.md" "2023-09-05"
9
9
"episodes/04-drawing.md" "9d78a765f5e9747ffc2aa43a4a5a414d" "site/built/04-drawing.md" "2023-09-05"
10
- "episodes/05-creating-histograms.md" "4b3573854902de7c66f6a2b1e3feae4b " "site/built/05-creating-histograms.md" "2023-09-05 "
10
+ "episodes/05-creating-histograms.md" "bdcf983127c242eb995605038598d09f " "site/built/05-creating-histograms.md" "2023-09-18 "
11
11
"episodes/06-blurring.md" "008ba23277efaed038691178e99c135b" "site/built/06-blurring.md" "2023-09-05"
12
12
"episodes/07-thresholding.md" "7ae5260f90e1df8e20a6226cce8ec6b6" "site/built/07-thresholding.md" "2023-09-05"
13
13
"episodes/08-connected-components.md" "59d42797208c5bf569da2fa2e4dd05df" "site/built/08-connected-components.md" "2023-09-09"
You can’t perform that action at this time.
0 commit comments