Skip to content

Commit 997de2b

Browse files
Added alt text for the images in the x-ray image processing tutorial (#101)
1 parent 2fdb15b commit 997de2b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/tutorial-x-ray-image-processing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on certain parts, and visually compare them using the
2222
[Laplacian-Gaussian](https://en.wikipedia.org/wiki/Laplace_distribution),
2323
[Sobel](https://en.wikipedia.org/wiki/Sobel_operator), and
2424
[Canny](https://en.wikipedia.org/wiki/Canny_edge_detector) filters for edge
25-
detection.
25+
detection.
2626

2727
X-ray image analysis can be part of your data analysis and
2828
[machine learning workflow](https://www.sciencedirect.com/science/article/pii/S235291481930214X)
@@ -50,7 +50,7 @@ tutorial's repository under `tutorial-x-ray-image-processing/`, since
5050
ChestX-ray8 contains gigabytes of data and you may find it challenging to
5151
download it in batches.
5252

53-
![Images showing different filters applied over a chest x-ray image](_static/tutorial-x-ray-image-processing.png)
53+
![A series of 9 x-ray images of the same region of a patient's chest is shown with different types of image processing filters applied to each image. Each x-ray shows different types of biological detail.](_static/tutorial-x-ray-image-processing.png)
5454

5555
+++
5656

@@ -104,7 +104,7 @@ each notebook cell.
104104
+++
105105

106106
Let's begin with a simple example using just one X-ray image from the
107-
ChestX-ray8 dataset.
107+
ChestX-ray8 dataset.
108108

109109
The file — `00000011_001.png` — has been downloaded for you and saved in the
110110
`/tutorial-x-ray-image-processing` folder.
@@ -234,10 +234,10 @@ notebook:
234234

235235
```{code-cell} ipython3
236236
GIF_PATH = os.path.join(DIR, 'xray_image.gif')
237-
imageio.mimwrite(GIF_PATH, combined_xray_images_1, format= '.gif', fps = 1)
237+
imageio.mimwrite(GIF_PATH, combined_xray_images_1, format= '.gif', fps = 1)
238238
```
239239
Which gives us:
240-
![health_progress](tutorial-x-ray-image-processing/xray_image.gif)
240+
![An animated gif repeatedly cycles through a series of 8 x-rays, showing the same viewpoint of the patient's chest at different points in time. The patient's bones and internal organs can be visually compared from frame to frame.](tutorial-x-ray-image-processing/xray_image.gif)
241241
## Edge detection using the Laplacian-Gaussian, Gaussian gradient, Sobel, and Canny filters
242242

243243
+++
@@ -341,7 +341,7 @@ produce a gradient magnitude.
341341
[Pythagorean theorem](https://en.wikipedia.org/wiki/Pythagorean_theorem) and
342342
NumPy's [`np.hypot()`](https://numpy.org/doc/stable/reference/generated/numpy.hypot.html)
343343
to obtain the magnitude. Finally, normalize the rescaled image for the pixel
344-
values to be between 0 and 255.
344+
values to be between 0 and 255.
345345

346346
[Image normalization](https://en.wikipedia.org/wiki/Normalization_%28image_processing%29)
347347
follows the `output_channel = 255.0 * (input_channel - min_value) / (max_value - min_value)`
@@ -488,7 +488,7 @@ plt.show()
488488
```
489489

490490
As the pixel intensity distribution suggests, there are many low (between around
491-
0 and 20) and very high (between around 200 and 240) pixel values.
491+
0 and 20) and very high (between around 200 and 240) pixel values.
492492

493493
**3.** You can create different conditional masks with NumPy's `np.where()`
494494
for example, let's have only those values of the image with the pixels exceeding

0 commit comments

Comments
 (0)