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
With the `output_format` parameter set to `"tif"`, each resulting tile is named using a suffix that represents the bottom left `(x, y)`
54
-
pixel coordinate position. If output_format is set to `"npz"`, the resulting .npz zip file contains a dictionary of arrays,
55
-
where the keys are the same as these tile names. By default, the prefix of each tile name is taken from the input image file name
52
+
Each resulting tile is named using a suffix that represents the bottom left `(x, y)`
53
+
pixel coordinate position. By default, the prefix of each tile name is taken from the input image file name
56
54
(`input_image_path`), unless you specify `output_name`.
57
55
58
56
Using the parameter `use_multiprocessing=True` (default) makes chipping process faster by using multiple cores.
@@ -84,13 +82,12 @@ image_chipper = ImageChip(
84
82
output_name="large_image",
85
83
pixel_dimensions=128,
86
84
offset=64,
87
-
output_format="tif",
88
85
)
89
86
image_chipper.chip_image()
90
87
```
91
88
92
89
### 3. RemoveBackgroundOnly Class
93
-
The `RemoveBackgroundOnly` class provides functionality to remove image chips (either could be tifs or numpy arrays inside npz file) that contain only background. Filtering out images only containing background helps to prepare a dataset more suitable for training models.
90
+
The `RemoveBackgroundOnly` class provides functionality to remove image chips that contain only background. Filtering out images only containing background helps to prepare a dataset more suitable for training models.
0 commit comments