dcmqi: FATAL ERROR: Writing of the SEG dataset failed

Hi, I’m trying to use the library to generate a DICOM Seg with itkimage2segimage. For the context I’m trying to segment only one slice of a set of dicoms, so the nrrd file is nrrd_mat is full of zeros except for the one slice we are trying to segment However, whenever we try a fatal error occurs. Here is the full error:

./itkimage2segimage --inputDICOMDirectory /home/utilisateurs/adurieux/qualite/ressources/patient1 --inputMetadata ./patient.json --inputImageList nrrd_mat.nrrd --outputDICOM ./segmentation.dcm
dcmqi repository URL: git@github.com:QIICR/dcmqi.git revision: 1127a37 tag: latest-15-g1127a37
Searching recursively /home/utilisateurs/adurieux/qualite/ressources/patient1 for DICOM files
Input image size: [512, 512, 452]
W: PatientAge (0010,1010) violates VR definition in PatientStudyModule
Directions: 1 0 0
0 1 0
0 0 1

Processing input label Image (0x178ed40)
  RTTI typeinfo:   itk::Image<short, 3u>
  Reference Count: 3
  Modified Time: 176
  Debug: Off
  Object Name:
  Observers:
    none
  Source: (none)
  Source output name: (none)
  Release Data: Off
  Data Released: False
  Global Release Data: Off
  PipelineMTime: 48
  UpdateMTime: 175
  RealTimeStamp: 0 seconds
  LargestPossibleRegion:
    Dimension: 3
    Index: [0, 0, 0]
    Size: [512, 512, 452]
  BufferedRegion:
    Dimension: 3
    Index: [0, 0, 0]
    Size: [512, 512, 452]
  RequestedRegion:
    Dimension: 3
    Index: [0, 0, 0]
    Size: [512, 512, 452]
  Spacing: [1, 1, 1]
  Origin: [0, 0, 0]
  Direction: 
1 0 0
0 1 0
0 0 1

 IndexToPointMatrix: 
1 0 0
0 1 0
0 0 1

 PointToIndexMatrix: 
1 0 0
0 1 0
0 0 1

 Inverse Direction: 
1 0 0
0 1 0
0 0 1

 PixelContainer:
    ImportImageContainer (0x178efd0)
      RTTI typeinfo:   itk::ImportImageContainer<unsigned long, short>
      Reference Count: 1
      Modified Time: 172
      Debug: Off
      Object Name:
      Observers:
        none
      Pointer: 0x7f7194355010
      Container manages memory: true
      Size: 118489088
      Capacity: 118489088

Found 5 label(s)
Skipping label 0
Processing label 1
Total non-empty slices that will be encoded in SEG for label 1 is 452
 (inclusive from 0 to 452)
Processing label 2
Total non-empty slices that will be encoded in SEG for label 2 is 452
 (inclusive from 0 to 452)
Processing label 3
Total non-empty slices that will be encoded in SEG for label 3 is 452
 (inclusive from 0 to 452)
Processing label 4
Total non-empty slices that will be encoded in SEG for label 4 is 452
 (inclusive from 0 to 452)
W: PatientAge (0010,1010) violates VR definition in PatientStudyModule
FATAL ERROR: Writing of the SEG dataset failed! Please report the problem to the developers, ideally accompanied by a de-identified dataset allowing to reproduce the problem!

Do you have any ideas on what we are doing wrong or if it’s a bug related issue ?

Alexis

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (12 by maintainers)

Most upvoted comments

I fixed this today in DCMTK testing branch. The commit 71496d will be visible in the next days in the public upstream DCMTK master. If you want to try this before it is published, you can find a copy of the current OFFIS testing branch in my private github copy: https://github.com/michaelonken/dcmtk (branch offis_testing)