Project

General

Profile

Actions

Feature #1086

open

Implement support for DICOM CP 2275 in dcm2json

Added by Marco Eichelberg almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Library and Apps
Target version:
Start date:
2023-11-11
Due date:
% Done:

0%

Estimated time:
Module:
dcmdata
Operating System:
Compiler:

Description

Currently, the dcm2json tool supports a non-standard extension, enabled by the --encode-extended command line option, that encodes binary floating point numbers that are either "not a number" or infinity as 'nan' and 'inf', respectively:

  "00720076": {
    "vr": "FL",
    "Value": [
      -inf,
      0,
      inf,
      nan
    ]
  }

DICOM CP 2275 (which is currently a working draft) will introduce official values for infinity and nan, and these will probably be different from the values currently written by dcm2json, i.e. "Infinity" and "NaN" (with quotes, i.e. encoded as JSON string). Once the CP has been finalized, dcm2json should be adapted accordingly, and the extended encoding mode should then be made the default.

Thanks to Mathieu Malaterre <> for pointing this out.


Related issues 1 (1 open0 closed)

Related to DCMTK - Feature #1055: Support alternative keywords for NaN and infinity in dcm2jsonNew2023-01-11

Actions
Actions #1

Updated by Jörg Riesmeier almost 2 years ago

  • Target version changed from 3.7.0 to 3.7.1+
Actions #2

Updated by Marco Eichelberg about 1 year ago

  • Related to Feature #1055: Support alternative keywords for NaN and infinity in dcm2json added
Actions

Also available in: Atom PDF