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/itksnap.Rmd
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -233,15 +233,15 @@ In some cases you may want to display an image as a colour overlay on top of ano
233
233
234
234
### Layer inspector tools
235
235
* Load `CT-PET-VI-02/CT_for_PET` and `CT-PET-VI-02/PET` scan datasets, using hot semi-transparency (as shown above).
236
-
* Go to `Tools->Layer Inspector`. This opens the Image Layer Inspector window. you will see the two images on the left, and five tabs along the top of the window.
236
+
* Go to `Tools->Layer Inspector`. This opens the Image Layer Inspector window. You will see the two images on the left, and five tabs along the top of the window.
237
237
* PET image appears in Cursor Inspector (called Galligas Lung) in italic and CT image as CT Lung in bold.
238
238
239
239
***The General tab** displays the filename and the nickname for the selected image.
240
240
* The Nickname can be edited. For the PET image the general tab also displays a slider to set the opacity, and the option to display it as a separate image or semi-transparent overlay.
241
241
242
242

243
243
244
-
***The Contrast tab** enables you to adjust how the image intensities are displayed for the different images. e.g. Select the lung image and set the maximum value to 1000 (push enter after typing the number) and this will make the structures in the lung easier to see.
244
+
***The Contrast tab** enables you to adjust how the image intensities are displayed for the different images, e.g. Select the lung image and set the maximum value to 1000 (push enter after typing the number) and this will make the structures in the lung easier to see.
245
245
246
246

247
247
@@ -447,7 +447,7 @@ print(nii3ct.header)
447
447
```
448
448
*`sform` transformation matrix
449
449
You can see that the `sform` is stored in the `srow_x`, `srow_y`, and `srow_z` fields of the header.
450
-
These specify the top three rows of a 4x4 matrix representing an affine transformation using homogenous coordinates.
450
+
These specify the top three rows of a 4x4 matrix representing an affine transformation using homogeneous coordinates.
451
451
The fourth row is not stored as it is always `[0 0 0 1]`.
452
452
You will notice that the sform matrix matches the affine transform in the `Nifti1Image` object.
453
453
@@ -457,7 +457,7 @@ There are 5 different sform/qform codes defined:
457
457
458
458
| Code | Label | Meaning |
459
459
| --- | --- | --- |
460
-
| 0 | unknown | sform not definted|
460
+
| 0 | unknown | sform not defined|
461
461
| 1 | scanner | RAS+ is scanner coordinates |
462
462
| 2 | aligned | RAS+ aligned to some other scan |
463
463
| 3 | talairach | RAS+ in Talairach atlas space |
@@ -504,7 +504,7 @@ and posterior of the image/patient, but the nifti format assumes a RAS world coo
504
504
system (i.e. the values increase as you move to the right and anterior of the patient).
505
505
Therefore, the world coordinates decrease as the voxel indices increase.
506
506
507
-
#### ITK-SNAP visualistaion coordinate system
507
+
#### ITK-SNAP visualisation coordinate system
508
508
TOADD
509
509
510
510
## Modifying `NifTi` images and headers with Nibabel
Casting image data to float64 prevents any integer-related errors and problems in downstream processing when using the data read by NiBabel.
532
532
However, this does not change the type of the image stored on disk, which as we have seen is int16 for this image, and this could still lead to downstream errors or unexpected behaviour for any processing that works directly on the images stored on disk.
533
533
We are going to convert the image saved on disk to a floating point image, using the `set_data_dtype` function to set the data type to float32.
534
-
Esentially, we are going to use 32 bit rather than 64 bit floating point, as this is usually sufficiently accurate.
534
+
Essentially, we are going to use 32 bit rather than 64 bit floating point, as this is usually sufficiently accurate.
Copy file name to clipboardExpand all lines: learners/setup.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,19 @@ Download the [data zip file](https://example.com/FIXME) and unzip it to your Des
22
22
23
23
### CT-vs-PET-Ventilation-Imaging
24
24
CT Ventilation as a Functional Imaging Modality for Lung Cancer Radiotherapy from [TCIA](https://www.cancerimagingarchive.net/collection/ct-vs-pet-ventilation-imaging/).
25
-
We recomend to focus on exhale/inhale breath hold CT (BHCT) Dicoms.
25
+
We recommend to focus on exhale/inhale breath hold CT (BHCT) Dicoms.
26
26
Bare in mind that:
27
27
* The BHCT scans for CT-PET-VI-02 & CT-PET-VI-03 show very little motion between inhale and exhale
28
28
* The BHCT scans for CT-PET-VI-05 have a different number of slices between the inhale and exhale
29
29
30
30
#### Extracting and renaming data paths
31
31
Original data directory paths for this work were renamed for easy interpretability as follows:
32
-
*`5.000000-Thorax Insp 2.0 B*`ranamed as `inhale_BH_CT`
32
+
*`5.000000-Thorax Insp 2.0 B*`renamed as `inhale_BH_CT`
33
33
*`7.000000-Thorax Exp 2.0 B*` renamed as `exhale_BH_CT`
34
-
*`3.000000-CT Lung 3.0 B*`ranamed as `CT_for_PET`
34
+
*`3.000000-CT Lung 3.0 B*`renamed as `CT_for_PET`
35
35
*`4.000000-Galligas Lung-0*` renamed as `PET`
36
36
37
-
See how the original data paths and renamed look like
37
+
See how the original data paths and renamed paths look like
38
38
```bash
39
39
#Original directory paths
40
40
/CT-PET-VI-02$ tree -d
@@ -116,7 +116,7 @@ See how the original data paths and renamed look like
116
116
117
117
## Software Setup
118
118
119
-
### Installing Dependencies in Python Virtual environmnets
119
+
### Installing Dependencies in Python Virtual environments
120
120
Installing python virtual environment with dependencies (e.g., nibabel, etc).
121
121
See further instructions [here](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/tree/main/_dependencies).
0 commit comments