Update README.md
Browse files
README.md
CHANGED
@@ -133,4 +133,11 @@ stack = cropper.load_stack_from_dicom_folder(dicom_folder,
|
|
133 |
|
134 |
# can input raw Hounsfield units into cropper
|
135 |
cropped_stack = cropper.crop(stack, mode="3d", device=device, raw_hu=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
```
|
|
|
133 |
|
134 |
# can input raw Hounsfield units into cropper
|
135 |
cropped_stack = cropper.crop(stack, mode="3d", device=device, raw_hu=True)
|
136 |
+
```
|
137 |
+
|
138 |
+
By default, the cropper will not remove slices in a stack, even if they are predicted to be empty.
|
139 |
+
You can enable this by specifying `remove_empty_slices=True`, which will also return
|
140 |
+
the indices in the original input of the removed empty slices.
|
141 |
+
```
|
142 |
+
cropped_stack, empty_slice_indices = cropper.crop(stack, mode="3d", remove_empty_slices=True)
|
143 |
```
|