Releases: lamyj/dicomifier
Releases · lamyj/dicomifier
v2.4.0
Diffusion-related goodness!
- Add conversion of diffusion meta-data during conversion to NIfTI (
--diffusion-scheme
,-s
) - Add option to keep effective b-values (
--effective-b-values
,-e
) - Fix conversion to bvecs/bvals for anisotropic images
Assorted freebies
- Add user-defined layout to to-nifti (
--layout
,-l
) - Add loading Bruker dataset from string data
v2.3.1
v2.3.0
New features
- Easier definition of stack for previously-unseen data: extra splitters can be supplied in
dicomifier.to_nifti.convert
module
Improvements
- Better robustness of series splitting on Siemens XA
- Fixed rescaling data of multi-frame images
- Better handling of GE private data (phase images & multi-shell diffusion data)
- Support for Python 3.10
v2.2.1
Minor release with the following changes
- Apply LGTM recommendations (thanks @DimitriPapadopoulos)
- Origin in NIfTI image converted from Siemens mosaic images
- Parsing Siemens protocol data with WiPMemBlock entries of different types
v2.2.0
Dicomifier 2.2.0 adds parsing the protocol data contained in the private DICOM fields generated by Siemens MR scanners. They can be read from the JSON metadata created by Dicomifier as follows:
import base64
import json
import dicomifier
with open("/somewhere/1.json") as fd:
meta_data = json.load(fd)
csa = dicomifier.dicom_to_nifti.siemens.parse_csa(base64.b64decode(meta_data["00291020"][0]))
protocol = dicomifier.dicom_to_nifti.siemens.parse_ascconv(csa["MrPhoenixProtocol"][0])
# `protocol` is a dictionary of all items in the ASCCONV section, e.g.
train_length = protocol["sFastImaging"]["lEPIFactor"]
This release also fixes a bug in reading the private DICOM fields.
v2.1.0
Dicomifier now has a search command to better target the partial conversion of a data set. By default, this lists the files matching search criteria based on the DICOM tags:
$ dicomifier search -m SeriesDescription="*Something*" huge_directory
huge_directory/2_DEV_ME/24_MT_MA/IM000001
huge_directory/2_DEV_ME/24_MT_MA/IM000002
huge_directory/2_DEV_ME/24_MT_MA/IM000003
...
It can also be piped to dicomifier to-nifti
:
$ dicomifier search -m SeriesDescription="*Something*" -p huge_directory | dicomifier to-nifti -v info - nifti_directory
INFO - dicomifier: Splitting 3840 DICOM files in series
INFO - dicomifier: 10 series found
...
Other improvements and bug fixes:
- Robustness of list
- Conversion of multi-frame data with stack indices split between Shared and Per-Frame sequences
- Conversion of single-slice data with no thickness
- Compatibility with Python 3.5