-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TotalReadoutTime
output in the json file can be inf
, which is not allowed by JSON syntax
#512
Comments
|
My fault,I only checked the master branch. I've build dcm2niix myself with commit 7038255 (the HEAD for development branch currently), however it still not work for me. Generated JSON: {
"Modality": "MR",
"MagneticFieldStrength": 30000,
"Manufacturer": "GE",
"InternalPulseSequenceName": "EPI2",
"ManufacturersModelName": "GENESIS_SIGNA",
"InstitutionName": "Tiantan Hospital",
"DeviceSerialNumber": "000082427040020",
"StationName": "GEMSlx3T",
"PatientPosition": "HFS",
"SoftwareVersions": "09",
"MRAcquisitionType": "2D",
"SeriesDescription": "diffusion ",
"ProtocolName": "diffusion ",
"ScanningSequence": "EP\\SE",
"SequenceVariant": "NONE",
"ScanOptions": "EPI_GEMS\\PFF",
"ImageType": ["ORIGINAL", "PRIMARY", "OTHER"],
"SeriesNumber": 4,
"AcquisitionTime": "09:19:39.000000",
"SliceThickness": 5,
"SpacingBetweenSlices": 5,
"SAR": 0.00807,
"EchoTime": 0.0734,
"RepetitionTime": 10,
"FlipAngle": 90,
"CoilString": "HEAD",
"PercentPhaseFOV": 100,
"PercentSampling": 100,
"AcquisitionMatrixPE": 128,
"ReconMatrixPE": 256,
"TotalReadoutTime": inf,
"PixelBandwidth": 773.438,
"PhaseEncodingAxis": "j",
"ImageOrientationPatientDICOM": [
1,
0,
0,
0,
1,
0 ],
"InPlanePhaseEncodingDirectionDICOM": "COL",
"ConversionSoftware": "dcm2niix",
"ConversionSoftwareVersion": "v1.0.20210426"
}
|
@function2-llx I think you want to check the provenance of these images. I suspect that some anonymization tool or PACS has corrupted your DICOM images. I suspect if you can get the raw data from your scanner, you will get sensible results. The reasons I am suspicious of these images are:
While we can certainly put conditionals to avoid reporting non-finite values, I think this is a symptom that your DICOMs have been tampered with. |
@neurolabusc Thank you so much for pointing this out! I'll check my DICOM data later.
And one thing notably that python's json library can parse something like: {
"a": Infinity,
"b": NaN
} to {'a': inf, 'b': nan} So this might also be an option (at least for python users). |
The latest commit to the development branch (v1.0.20210531) will only report |
From the
I suspect that @function2-llx, could you please check the DICOM tag (0043,1083)? I was expecting [1\1] like below for ASSET=1 dataset
@neurolabusc, Perhaps we can assume d.accelFactPE=1 in case of d.accelFactPE = 0, and can report |
@mr-jaemin Sure, but I'll have to do it a few days later for some reason. Feel free to remind me if I don't response for a long time. |
Describe the bug
TotalReadoutTime
output in the json file can beinf
, which is not allowed by JSON syntaxTo Reproduce
Simply run dcm2niix in command line like:
dcm2niix -z y -f %s -o <output_dir> <input_dir>
Sorry that I can't provide the specific files to reproduce, but I can upload an screenshot in vscode:
Expected behavior
Output a json file that could be parsed by common json library.
Versions
Chris Rorden's dcm2niiX version v1.0.20210317 GCC8.4.0 x86-64 (64-bit Linux)
Yes, it is.
There's no new commit since the latest release was built.
The text was updated successfully, but these errors were encountered: