mirp 2.2.0__tar.gz → 2.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mirp-2.2.0 → mirp-2.2.2}/CONTRIBUTING.md +7 -5
- {mirp-2.2.0 → mirp-2.2.2}/NEWS.md +53 -0
- {mirp-2.2.0 → mirp-2.2.2}/PKG-INFO +62 -42
- {mirp-2.2.0 → mirp-2.2.2}/README.md +59 -38
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/dicom_file.py +228 -42
- mirp-2.2.2/mirp/_data_import/dicom_file_pet.py +857 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/dicom_file_rtdose.py +26 -16
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/dicom_file_rtstruct.py +38 -32
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/dicom_file_seg.py +40 -33
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/dicom_file_stack.py +8 -7
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/directory.py +6 -2
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/generic_file.py +134 -55
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/generic_file_stack.py +24 -17
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/itk_file.py +21 -6
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/itk_file_stack.py +8 -4
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/mask_contour.py +2 -2
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/numpy_file.py +25 -10
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/read_data.py +11 -9
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/suv.py +1 -1
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/dzm.py +0 -59
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/morphology_3d.py +7 -9
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/szm.py +0 -55
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/gaussian.py +1 -1
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/base_image.py +1 -1
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/generic_image.py +15 -12
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/mask_image.py +2 -2
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/mr_image.py +1 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/utilities.py +32 -4
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_masks/base_mask.py +16 -18
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_workflows/standardWorkflow.py +5 -1
- {mirp-2.2.0 → mirp-2.2.2}/mirp/config_settings.xml +18 -14
- {mirp-2.2.0 → mirp-2.2.2}/mirp/data_import/import_image_and_mask.py +93 -68
- {mirp-2.2.0 → mirp-2.2.2}/mirp/data_import/import_mask.py +1 -1
- {mirp-2.2.0 → mirp-2.2.2}/mirp/deep_learning_preprocessing.py +15 -15
- {mirp-2.2.0 → mirp-2.2.2}/mirp/deprecated.py +6 -6
- {mirp-2.2.0 → mirp-2.2.2}/mirp/extract_features_and_images.py +168 -23
- {mirp-2.2.0 → mirp-2.2.2}/mirp/extract_image_parameters.py +8 -16
- {mirp-2.2.0 → mirp-2.2.2}/mirp/extract_mask_labels.py +6 -15
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/feature_parameters.py +1 -1
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/generic.py +11 -2
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/image_processing_parameters.py +46 -3
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/import_config_parameters.py +9 -9
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/interpolation_parameters.py +7 -3
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/resegmentation_parameters.py +0 -2
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/transformation_parameters.py +27 -25
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/utilities.py +18 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/utilities/config_utilities.py +5 -4
- mirp-2.2.2/mirp/utilities/parallel.py +100 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp.egg-info/PKG-INFO +62 -42
- {mirp-2.2.0 → mirp-2.2.2}/mirp.egg-info/SOURCES.txt +0 -4
- {mirp-2.2.0 → mirp-2.2.2}/mirp.egg-info/requires.txt +4 -1
- {mirp-2.2.0 → mirp-2.2.2}/pyproject.toml +13 -6
- mirp-2.2.0/mirp/_data_import/dicom_file_pet.py +0 -388
- mirp-2.2.0/mirp/_image_processing/add_noise.py +0 -32
- mirp-2.2.0/mirp/_image_processing/normalise_image.py +0 -31
- mirp-2.2.0/mirp/_image_processing/resegmentise_mask.py +0 -33
- mirp-2.2.0/mirp/_image_processing/saturate_image.py +0 -18
- mirp-2.2.0/mirp/utilities/parallel.py +0 -44
- {mirp-2.2.0 → mirp-2.2.2}/LICENSE.txt +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/MANIFEST.in +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/dicom_file_ct.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/dicom_file_mr.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/numpy_file_stack.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_data_import/utilities.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/cm.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/intensity_histogram.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/intensity_volume_histogram.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/local_intensity.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/ngldm.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/ngtdm.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/rlm.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/statistics.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_featuresets/utilities.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/alter_mask.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/anti_aliasing.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/cropping.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/discretise_image.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/randomise_mask.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/split_mask.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/tissue_mask.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_image_processing/utilities.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/exponential_transform.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/gabor.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/generic.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/laplacian_of_gaussian.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/laws.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/log_transform.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/mean.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/nonseparable_wavelet.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/separable_wavelet.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/square_root_transform.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/square_transform.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_imagefilters/utilities.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/ct_image.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/pet_image.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/rtdose_image.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_images/transformed_image.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_masks/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_workflows/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/_workflows/baseWorkflow.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/config_data.xml +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/data_import/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/data_import/import_image.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/general_parameters.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/import_data_parameters.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/settings/perturbation_parameters.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/utilities/__init__.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp/utilities/utilities.py +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp.egg-info/dependency_links.txt +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/mirp.egg-info/top_level.txt +0 -0
- {mirp-2.2.0 → mirp-2.2.2}/setup.cfg +0 -0
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Contributing
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
IRP is open-source software, hosted on [GitHub](https://github.com/oncoray/mirp). Contributions that enable
|
|
4
|
+
new DICOM modalities are especially welcome! If you have ideas or code to contribute, please first open an
|
|
5
|
+
`issue <https://github.com/oncoray/mirp/issues>`_ and describe your ideas.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
Technical documentation is forthcoming. For now, please keep the following in mind when contributing:
|
|
6
8
|
|
|
7
9
|
- The main branch of `mirp` is protected. You can therefore make a pull request for your contribution to a
|
|
8
10
|
development branch of the intended future version.
|
|
9
|
-
- If you introduce new functionality, this functionality should be tested as part of the tests in the `test`directory.
|
|
11
|
+
- If you introduce new functionality, this functionality should be tested as part of the tests in the `test` directory.
|
|
10
12
|
After implementation, please ensure that all tests complete without errors by running `pytest` from your IDE or
|
|
11
13
|
console using `python -m pytest test` from the mirp main directory.
|
|
12
14
|
- Code is styled according to [PEP8](https://peps.python.org/pep-0008/). Using a linter or IDE with automated linter
|
|
13
15
|
is recommended.
|
|
14
16
|
- Function, class and method documentation is done using Numpy-flavoured [docstrings](https://numpydoc.readthedocs.io/en/latest/format.html).
|
|
15
17
|
[Long-form documentation](https://oncoray.github.io/mirp/) is partially created from function, class and method
|
|
16
|
-
documentation, embedded in restructured text files in `docs_source
|
|
18
|
+
documentation, embedded in restructured text files in the `docs_source` directory.
|
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
# Version 2.2.2
|
|
2
|
+
|
|
3
|
+
## Minor changes
|
|
4
|
+
|
|
5
|
+
- `show` method of `GenericImage` and subclasses now indicate if a user-provided `slice_id` is out-of-volume and
|
|
6
|
+
select the nearest slice instead.
|
|
7
|
+
|
|
8
|
+
- Naming of branches in the settings `xml` file now matches that of their respective settings classes. `xml` files
|
|
9
|
+
with the previous branch names still function.
|
|
10
|
+
|
|
11
|
+
- Errors encountered during file import and handling are now more descriptive.
|
|
12
|
+
- `extract_mask_labels` and `extract_image_parameters` now export extra information from DICOM metadata, e.g. series
|
|
13
|
+
UID.
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
- Added a new tutorial on applying image filters to images.
|
|
18
|
+
- Added documentation on the feature naming system.
|
|
19
|
+
- Added documentation on the design of MIRP.
|
|
20
|
+
|
|
21
|
+
## Fixes
|
|
22
|
+
|
|
23
|
+
- Computing features related to the minimum volume enclosing ellipsoid no longer produces warnings due to the use of
|
|
24
|
+
deprecated `numpy.matrix` class.
|
|
25
|
+
|
|
26
|
+
# Version 2.2.1
|
|
27
|
+
|
|
28
|
+
## Minor changes
|
|
29
|
+
|
|
30
|
+
- If mask-related parameters are not provided for computing features or processing of images for deep learning, a
|
|
31
|
+
mask is generated that covers the entire image.
|
|
32
|
+
|
|
33
|
+
- Add fall-back methods for missing installation of the `ray` package for parallel processing. This can happen when
|
|
34
|
+
a python version is not supported by the `ray` package. `ray` is now a conditional dependency, until that package
|
|
35
|
+
is released for python `3.12`.
|
|
36
|
+
|
|
37
|
+
- The default export format for `deep_learning_processing` and `deep_learning_processing_generator` is now `dict`,
|
|
38
|
+
because the sample name is important for matching against observed outcomes.
|
|
39
|
+
|
|
40
|
+
- `write_file` arguments of `extract_mask_labels` and `extract_image_parameters` were deprecated as these were
|
|
41
|
+
redundant.
|
|
42
|
+
|
|
43
|
+
## Fixes
|
|
44
|
+
|
|
45
|
+
- Streamlined importing and reading DICOM files results in faster processing of DICOM-based imaging.
|
|
46
|
+
|
|
47
|
+
- Fixed an indexing issue when attempting to split masks into bulk and rim sections in a slice-wise fashion.
|
|
48
|
+
|
|
49
|
+
- Fixed an indexing issue in Rank's method for noise estimation.
|
|
50
|
+
|
|
51
|
+
- Fixed incorrectly named image parameters file export. Instead of `mask_labels.csv`, image parameters are now
|
|
52
|
+
correctly exported to `image_metadata.csv`.
|
|
53
|
+
|
|
1
54
|
# Version 2.2.0
|
|
2
55
|
|
|
3
56
|
## Major changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mirp
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: A package for standardised processing of medical imaging and computation of quantitative features.
|
|
5
5
|
Author-email: Alex Zwanenburg <alexander.zwanenburg@nct-dresden.de>
|
|
6
6
|
License: European Union Public Licence
|
|
@@ -284,8 +284,6 @@ Project-URL: Changelog, https://github.com/oncoray/mirp/blob/master/NEWS.md
|
|
|
284
284
|
Classifier: Programming Language :: Python :: 3
|
|
285
285
|
Classifier: Programming Language :: Python :: 3.10
|
|
286
286
|
Classifier: Programming Language :: Python :: 3.11
|
|
287
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
288
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
289
287
|
Classifier: License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)
|
|
290
288
|
Classifier: Operating System :: OS Independent
|
|
291
289
|
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
@@ -299,27 +297,51 @@ Requires-Dist: numpy>=1.25
|
|
|
299
297
|
Requires-Dist: pandas>=2.0.0
|
|
300
298
|
Requires-Dist: pydicom>=2.4.0
|
|
301
299
|
Requires-Dist: pywavelets>=1.4.0
|
|
302
|
-
Requires-Dist: ray>=2.7.0
|
|
303
300
|
Requires-Dist: scikit-image>=0.20.0
|
|
304
301
|
Requires-Dist: scipy>=1.11
|
|
305
302
|
Requires-Dist: typing-extensions>=4.10; python_version < "3.11"
|
|
303
|
+
Requires-Dist: ray>=2.10.0; python_version <= "3.11"
|
|
306
304
|
Provides-Extra: test
|
|
307
305
|
Requires-Dist: pytest>=7.4.0; extra == "test"
|
|
308
306
|
Provides-Extra: docs
|
|
309
307
|
Requires-Dist: sphinx>=5.0.0; extra == "docs"
|
|
310
308
|
Requires-Dist: sphinx_rtd_theme>=2.0.0; extra == "docs"
|
|
309
|
+
Requires-Dist: nbsphinx; extra == "docs"
|
|
311
310
|
|
|
312
311
|
<img src="https://raw.githubusercontent.com/oncoray/mirp/master/icon/mirp.svg" align="right" width="120"/>
|
|
313
312
|
|
|
314
313
|
# Medical Image Radiomics Processor
|
|
315
314
|
|
|
316
|
-
Medical Image Radiomics Processor (MIRP) is
|
|
317
|
-
|
|
318
|
-
and image processing for deep-learning applications.
|
|
315
|
+
Medical Image Radiomics Processor (MIRP) is a python package for medical image analysis that is compliant with the
|
|
316
|
+
reference standards of the Image Biomarker Standardisation Initiative (IBSI). MIRP focuses on radiomics applications
|
|
317
|
+
and supports computation of features for conventional radiomics and image processing for deep-learning applications.
|
|
319
318
|
|
|
320
|
-
## Documentation
|
|
319
|
+
## Documentation and tutorials
|
|
321
320
|
|
|
322
|
-
Documentation can be found here: https://oncoray.github.io/mirp/
|
|
321
|
+
Documentation and tutorials can be found here: https://oncoray.github.io/mirp/
|
|
322
|
+
|
|
323
|
+
## Supported Python and OS
|
|
324
|
+
|
|
325
|
+
MIRP currently supports the following Python versions and operating systems:
|
|
326
|
+
|
|
327
|
+
| Python | Linux | Win | OSX |
|
|
328
|
+
|--------|-----------|-----------|-----------|
|
|
329
|
+
| 3.10 | Supported | Supported | Supported |
|
|
330
|
+
| 3.11 | Supported | Supported | Supported |
|
|
331
|
+
|
|
332
|
+
## Supported imaging and mask modalities
|
|
333
|
+
|
|
334
|
+
MIRP currently supports the following image modalities:
|
|
335
|
+
|
|
336
|
+
| File format | File type | Supported modality |
|
|
337
|
+
|-------------|-----------|--------------------|
|
|
338
|
+
| DICOM | image | CT, MR, PT, RTDOSE |
|
|
339
|
+
| DICOM | mask | RTSTRUCT, SEG |
|
|
340
|
+
| NIfTI | any | any |
|
|
341
|
+
| NRRD | any | any |
|
|
342
|
+
| numpy | any | any |
|
|
343
|
+
|
|
344
|
+
NIfTI, NRRD, and numpy files support any kind of (single-channel) image. MIRP cannot process RGB or 4D images.
|
|
323
345
|
|
|
324
346
|
## Installing MIRP
|
|
325
347
|
MIRP is available from PyPI and can be installed using `pip`, or other installer tools:
|
|
@@ -328,39 +350,6 @@ MIRP is available from PyPI and can be installed using `pip`, or other installer
|
|
|
328
350
|
pip install mirp
|
|
329
351
|
```
|
|
330
352
|
|
|
331
|
-
## Transitioning to version 2
|
|
332
|
-
|
|
333
|
-
Version 2 is a major refactoring of the previous code base. For users this brings the following noticeable changes:
|
|
334
|
-
|
|
335
|
-
- MIRP was previously configured using two `xml` files: [`config_data.xml`](mirp/config_data.xml) for configuring
|
|
336
|
-
directories, data to be read, etc., and [`config_settings.xml`](mirp/config_settings.xml) for configuring experiments.
|
|
337
|
-
While these two files can still be used, MIRP can now be configured directly, without using these files.
|
|
338
|
-
- The main functions of MIRP (`mainFunctions.py`) have all been re-implemented.
|
|
339
|
-
- `mainFunctions.extract_features` is now `extract_features` (functional form) or
|
|
340
|
-
`extract_features_generator` (generator). The replacements allow for both writing
|
|
341
|
-
feature values to a directory and returning them as function output.
|
|
342
|
-
- `mainFunctions.extract_images_to_nifti` is now `extract_images` (functional form) or
|
|
343
|
-
`extract_images_generator` (generator). The replacements allow for both writing
|
|
344
|
-
images to a directory (e.g., in NIfTI or numpy format) and returning them as function output.
|
|
345
|
-
- `mainFunctions.extract_images_for_deep_learning` has been replaced by
|
|
346
|
-
`deep_learning_preprocessing` (functional form) and
|
|
347
|
-
`deep_learning_preprocessing_generator` (generator).
|
|
348
|
-
- `mainFunctions.get_file_structure_parameters` and `mainFunctions.parse_file_structure` are deprecated, as the
|
|
349
|
-
the file import system used in version 2 no longer requires a rigid directory structure.
|
|
350
|
-
- `mainFunctions.get_roi_labels` is now `extract_mask_labels`.
|
|
351
|
-
- `mainFunctions.get_image_acquisition_parameters` is now `extract_image_parameters`.
|
|
352
|
-
|
|
353
|
-
For advanced users and developers, the following changes are relevant:
|
|
354
|
-
- MIRP previously relied on `ImageClass` and `RoiClass` objects. These have been completely replaced by `GenericImage`
|
|
355
|
-
(and its subclasses, e.g. `CTImage`) and `BaseMask` objects, respectively. New image modalities can be added as
|
|
356
|
-
subclass of `GenericImage` in the `mirp.images` submodule.
|
|
357
|
-
- File import, e.g. from DICOM or NIfTI files, in version 1 was implemented in an ad-hoc manner, and required a rigid
|
|
358
|
-
directory structure. Since version 2, file import is implemented using an object-oriented approach, and directory
|
|
359
|
-
structures are more flexible. File import of new modalities can be implemented as a relevant subclass of `ImageFile`.
|
|
360
|
-
- MIRP uses type hinting, and makes use of the `Self` type hint introduced in Python 3.11. MIRP
|
|
361
|
-
therefore requires Python 3.11 or later.
|
|
362
|
-
- MIRP now uses the `ray` package for parallel processing.
|
|
363
|
-
|
|
364
353
|
## Examples - Computing Radiomics Features
|
|
365
354
|
|
|
366
355
|
MIRP can be used to compute quantitative features from regions of interest in images in an IBSI-compliant manner
|
|
@@ -466,6 +455,37 @@ mask_labels = extract_mask_labels(
|
|
|
466
455
|
)
|
|
467
456
|
```
|
|
468
457
|
|
|
458
|
+
## Transitioning to version 2
|
|
459
|
+
|
|
460
|
+
Version 2 is a major refactoring of the previous code base. For users this brings the following noticeable changes:
|
|
461
|
+
|
|
462
|
+
- MIRP was previously configured using two `xml` files: [`config_data.xml`](mirp/config_data.xml) for configuring
|
|
463
|
+
directories, data to be read, etc., and [`config_settings.xml`](mirp/config_settings.xml) for configuring experiments.
|
|
464
|
+
While these two files can still be used, MIRP can now be configured directly, without using these files.
|
|
465
|
+
- The main functions of MIRP (`mainFunctions.py`) have all been re-implemented.
|
|
466
|
+
- `mainFunctions.extract_features` is now `extract_features` (functional form) or
|
|
467
|
+
`extract_features_generator` (generator). The replacements allow for both writing
|
|
468
|
+
feature values to a directory and returning them as function output.
|
|
469
|
+
- `mainFunctions.extract_images_to_nifti` is now `extract_images` (functional form) or
|
|
470
|
+
`extract_images_generator` (generator). The replacements allow for both writing
|
|
471
|
+
images to a directory (e.g., in NIfTI or numpy format) and returning them as function output.
|
|
472
|
+
- `mainFunctions.extract_images_for_deep_learning` has been replaced by
|
|
473
|
+
`deep_learning_preprocessing` (functional form) and
|
|
474
|
+
`deep_learning_preprocessing_generator` (generator).
|
|
475
|
+
- `mainFunctions.get_file_structure_parameters` and `mainFunctions.parse_file_structure` are deprecated, as the
|
|
476
|
+
the file import system used in version 2 no longer requires a rigid directory structure.
|
|
477
|
+
- `mainFunctions.get_roi_labels` is now `extract_mask_labels`.
|
|
478
|
+
- `mainFunctions.get_image_acquisition_parameters` is now `extract_image_parameters`.
|
|
479
|
+
|
|
480
|
+
For advanced users and developers, the following changes are relevant:
|
|
481
|
+
- MIRP previously relied on `ImageClass` and `RoiClass` objects. These have been completely replaced by `GenericImage`
|
|
482
|
+
(and its subclasses, e.g. `CTImage`) and `BaseMask` objects, respectively. New image modalities can be added as
|
|
483
|
+
subclass of `GenericImage` in the `mirp.images` submodule.
|
|
484
|
+
- File import, e.g. from DICOM or NIfTI files, in version 1 was implemented in an ad-hoc manner, and required a rigid
|
|
485
|
+
directory structure. Since version 2, file import is implemented using an object-oriented approach, and directory
|
|
486
|
+
structures are more flexible. File import of new modalities can be implemented as a relevant subclass of `ImageFile`.
|
|
487
|
+
- MIRP now uses the `ray` package for parallel processing.
|
|
488
|
+
|
|
469
489
|
# Citation info
|
|
470
490
|
A publication for MIRP is forthcoming. For now, please cite the following work:
|
|
471
491
|
```Zwanenburg A, Leger S, Agolli L, Pilz K, Troost EG, Richter C, Löck S. Assessing robustness of radiomic features by image perturbation. Scientific reports. 2019 Jan 24;9(1):614.```
|
|
@@ -2,13 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
# Medical Image Radiomics Processor
|
|
4
4
|
|
|
5
|
-
Medical Image Radiomics Processor (MIRP) is
|
|
6
|
-
|
|
7
|
-
and image processing for deep-learning applications.
|
|
5
|
+
Medical Image Radiomics Processor (MIRP) is a python package for medical image analysis that is compliant with the
|
|
6
|
+
reference standards of the Image Biomarker Standardisation Initiative (IBSI). MIRP focuses on radiomics applications
|
|
7
|
+
and supports computation of features for conventional radiomics and image processing for deep-learning applications.
|
|
8
8
|
|
|
9
|
-
## Documentation
|
|
9
|
+
## Documentation and tutorials
|
|
10
10
|
|
|
11
|
-
Documentation can be found here: https://oncoray.github.io/mirp/
|
|
11
|
+
Documentation and tutorials can be found here: https://oncoray.github.io/mirp/
|
|
12
|
+
|
|
13
|
+
## Supported Python and OS
|
|
14
|
+
|
|
15
|
+
MIRP currently supports the following Python versions and operating systems:
|
|
16
|
+
|
|
17
|
+
| Python | Linux | Win | OSX |
|
|
18
|
+
|--------|-----------|-----------|-----------|
|
|
19
|
+
| 3.10 | Supported | Supported | Supported |
|
|
20
|
+
| 3.11 | Supported | Supported | Supported |
|
|
21
|
+
|
|
22
|
+
## Supported imaging and mask modalities
|
|
23
|
+
|
|
24
|
+
MIRP currently supports the following image modalities:
|
|
25
|
+
|
|
26
|
+
| File format | File type | Supported modality |
|
|
27
|
+
|-------------|-----------|--------------------|
|
|
28
|
+
| DICOM | image | CT, MR, PT, RTDOSE |
|
|
29
|
+
| DICOM | mask | RTSTRUCT, SEG |
|
|
30
|
+
| NIfTI | any | any |
|
|
31
|
+
| NRRD | any | any |
|
|
32
|
+
| numpy | any | any |
|
|
33
|
+
|
|
34
|
+
NIfTI, NRRD, and numpy files support any kind of (single-channel) image. MIRP cannot process RGB or 4D images.
|
|
12
35
|
|
|
13
36
|
## Installing MIRP
|
|
14
37
|
MIRP is available from PyPI and can be installed using `pip`, or other installer tools:
|
|
@@ -17,39 +40,6 @@ MIRP is available from PyPI and can be installed using `pip`, or other installer
|
|
|
17
40
|
pip install mirp
|
|
18
41
|
```
|
|
19
42
|
|
|
20
|
-
## Transitioning to version 2
|
|
21
|
-
|
|
22
|
-
Version 2 is a major refactoring of the previous code base. For users this brings the following noticeable changes:
|
|
23
|
-
|
|
24
|
-
- MIRP was previously configured using two `xml` files: [`config_data.xml`](mirp/config_data.xml) for configuring
|
|
25
|
-
directories, data to be read, etc., and [`config_settings.xml`](mirp/config_settings.xml) for configuring experiments.
|
|
26
|
-
While these two files can still be used, MIRP can now be configured directly, without using these files.
|
|
27
|
-
- The main functions of MIRP (`mainFunctions.py`) have all been re-implemented.
|
|
28
|
-
- `mainFunctions.extract_features` is now `extract_features` (functional form) or
|
|
29
|
-
`extract_features_generator` (generator). The replacements allow for both writing
|
|
30
|
-
feature values to a directory and returning them as function output.
|
|
31
|
-
- `mainFunctions.extract_images_to_nifti` is now `extract_images` (functional form) or
|
|
32
|
-
`extract_images_generator` (generator). The replacements allow for both writing
|
|
33
|
-
images to a directory (e.g., in NIfTI or numpy format) and returning them as function output.
|
|
34
|
-
- `mainFunctions.extract_images_for_deep_learning` has been replaced by
|
|
35
|
-
`deep_learning_preprocessing` (functional form) and
|
|
36
|
-
`deep_learning_preprocessing_generator` (generator).
|
|
37
|
-
- `mainFunctions.get_file_structure_parameters` and `mainFunctions.parse_file_structure` are deprecated, as the
|
|
38
|
-
the file import system used in version 2 no longer requires a rigid directory structure.
|
|
39
|
-
- `mainFunctions.get_roi_labels` is now `extract_mask_labels`.
|
|
40
|
-
- `mainFunctions.get_image_acquisition_parameters` is now `extract_image_parameters`.
|
|
41
|
-
|
|
42
|
-
For advanced users and developers, the following changes are relevant:
|
|
43
|
-
- MIRP previously relied on `ImageClass` and `RoiClass` objects. These have been completely replaced by `GenericImage`
|
|
44
|
-
(and its subclasses, e.g. `CTImage`) and `BaseMask` objects, respectively. New image modalities can be added as
|
|
45
|
-
subclass of `GenericImage` in the `mirp.images` submodule.
|
|
46
|
-
- File import, e.g. from DICOM or NIfTI files, in version 1 was implemented in an ad-hoc manner, and required a rigid
|
|
47
|
-
directory structure. Since version 2, file import is implemented using an object-oriented approach, and directory
|
|
48
|
-
structures are more flexible. File import of new modalities can be implemented as a relevant subclass of `ImageFile`.
|
|
49
|
-
- MIRP uses type hinting, and makes use of the `Self` type hint introduced in Python 3.11. MIRP
|
|
50
|
-
therefore requires Python 3.11 or later.
|
|
51
|
-
- MIRP now uses the `ray` package for parallel processing.
|
|
52
|
-
|
|
53
43
|
## Examples - Computing Radiomics Features
|
|
54
44
|
|
|
55
45
|
MIRP can be used to compute quantitative features from regions of interest in images in an IBSI-compliant manner
|
|
@@ -155,6 +145,37 @@ mask_labels = extract_mask_labels(
|
|
|
155
145
|
)
|
|
156
146
|
```
|
|
157
147
|
|
|
148
|
+
## Transitioning to version 2
|
|
149
|
+
|
|
150
|
+
Version 2 is a major refactoring of the previous code base. For users this brings the following noticeable changes:
|
|
151
|
+
|
|
152
|
+
- MIRP was previously configured using two `xml` files: [`config_data.xml`](mirp/config_data.xml) for configuring
|
|
153
|
+
directories, data to be read, etc., and [`config_settings.xml`](mirp/config_settings.xml) for configuring experiments.
|
|
154
|
+
While these two files can still be used, MIRP can now be configured directly, without using these files.
|
|
155
|
+
- The main functions of MIRP (`mainFunctions.py`) have all been re-implemented.
|
|
156
|
+
- `mainFunctions.extract_features` is now `extract_features` (functional form) or
|
|
157
|
+
`extract_features_generator` (generator). The replacements allow for both writing
|
|
158
|
+
feature values to a directory and returning them as function output.
|
|
159
|
+
- `mainFunctions.extract_images_to_nifti` is now `extract_images` (functional form) or
|
|
160
|
+
`extract_images_generator` (generator). The replacements allow for both writing
|
|
161
|
+
images to a directory (e.g., in NIfTI or numpy format) and returning them as function output.
|
|
162
|
+
- `mainFunctions.extract_images_for_deep_learning` has been replaced by
|
|
163
|
+
`deep_learning_preprocessing` (functional form) and
|
|
164
|
+
`deep_learning_preprocessing_generator` (generator).
|
|
165
|
+
- `mainFunctions.get_file_structure_parameters` and `mainFunctions.parse_file_structure` are deprecated, as the
|
|
166
|
+
the file import system used in version 2 no longer requires a rigid directory structure.
|
|
167
|
+
- `mainFunctions.get_roi_labels` is now `extract_mask_labels`.
|
|
168
|
+
- `mainFunctions.get_image_acquisition_parameters` is now `extract_image_parameters`.
|
|
169
|
+
|
|
170
|
+
For advanced users and developers, the following changes are relevant:
|
|
171
|
+
- MIRP previously relied on `ImageClass` and `RoiClass` objects. These have been completely replaced by `GenericImage`
|
|
172
|
+
(and its subclasses, e.g. `CTImage`) and `BaseMask` objects, respectively. New image modalities can be added as
|
|
173
|
+
subclass of `GenericImage` in the `mirp.images` submodule.
|
|
174
|
+
- File import, e.g. from DICOM or NIfTI files, in version 1 was implemented in an ad-hoc manner, and required a rigid
|
|
175
|
+
directory structure. Since version 2, file import is implemented using an object-oriented approach, and directory
|
|
176
|
+
structures are more flexible. File import of new modalities can be implemented as a relevant subclass of `ImageFile`.
|
|
177
|
+
- MIRP now uses the `ray` package for parallel processing.
|
|
178
|
+
|
|
158
179
|
# Citation info
|
|
159
180
|
A publication for MIRP is forthcoming. For now, please cite the following work:
|
|
160
181
|
```Zwanenburg A, Leger S, Agolli L, Pilz K, Troost EG, Richter C, Löck S. Assessing robustness of radiomic features by image perturbation. Scientific reports. 2019 Jan 24;9(1):614.```
|