You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/02-visualisation.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ print(image.shape)
116
116
```
117
117
118
118
Here we see that the image has 3 dimensions. The first dimension is height (512 pixels) and the second is width (also 512 pixels).
119
-
The presence of a third dimension indicates that we are looking at a color image ("RGB", or Red, Green, Blue).
119
+
The presence of a third dimension indicates that we are looking at a color image. The last "RGB" index holds separate Red, Green, and Blue channels. For these images, however, R=G=B, so it doesn't appear to have color.
120
120
121
121
For more detail on image representation in Python, take a look at the [Data Carpentry course on Image Processing with Python](https://datacarpentry.org/image-processing/). The following image is reproduced from the [section on Image Representation](https://datacarpentry.org/image-processing/03-skimage-images/index.html).
X-ray images are often high resolution, which can be useful for detailed clinical interpretation. However, for training a machine learning model, especially in an educational or prototype setting, using smaller images can reduce:
@@ -204,6 +213,10 @@ for i in range(len(dataset)):
Note that this standardizes each image individually, so that
217
+
the image mean is now zero for *every* image. If we had standardized the entire
218
+
dataset, there would still be variations in `dataset[i].mean()`.
219
+
207
220
### Reshaping
208
221
209
222
Finally, we'll convert our dataset from a list to an array. We are expecting it to be (700, 256, 256), representing 700 images (350 effusion and 350 normal), each with dimensions 256×256.
0 commit comments