View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011538ITKITKpublic2010-11-30 04:322010-12-01 08:58
ReporterDzenan Zukic 
Assigned ToHans Johnson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformVisualStudio2008OSWindowsOS Version7 x64
Product VersionITK-3-20 
Target VersionFixed in Version 
Summary0011538: NRRD library does not write out spacing
DescriptionNRRD writing library does not output spacing, which is a very important information for medical images.
Steps To Reproduce//converting from DICOM
DicomSeriesReadImageWrite2.exe DzZ_1189272 DzZ_1189272.nrrd
//spacing information missing in resulting file
Additional InformationThe offending datasets can be found here: http://www.cg.informatik.uni-siegen.de/data/Downloads/DzZ.zip [^]
TagsNo tags attached.
Resolution Date2010-12-01
Sprint
Sprint Statusbacklog
Attached Files

 Relationships

  Notes
(0023582)
Hans Johnson (developer)
2010-11-30 11:52

This code is used in all of the Slicer3 package that uses the NRRD format extensively.

I just tested a conversion of the dicom data to nrrd format, and the space dimensions are preserved in the simple ConvertBetweenFileformats program that uses a very simple ITK reader connected to an ITK writer to gernerate the file.

Resulting NRRD file:
space directions: (-0.028482222114689648,1.5622371807694435,-0.0031697461963631213) (5.7780221141001675e-05,-0.0031692197808297351,-1.5624967403709888) (-14.997506414999528,-0.27342986976399952,7.341039418622205e-1
1)

14.999999046325684 1.562500000000000 1.562500000000000

Original Dicom data:
<element tag="0018,0088" vr="DS" vm="1" len="4" name="SpacingBetweenSlices">15.0</element>

<element tag="0028,0030" vr="DS" vm="2" len="14" name="PixelSpacing">1.5625\1.5625</element>


This seems correct to me.
(0023631)
Dzenan Zukic (developer)
2010-12-01 03:21

This is the header of DzZ_1189272.nrrd (the converted file):

NRRD0004
# Complete NRRD file format specification at:
# http://teem.sourceforge.net/nrrd/format.html [^]
type: short
dimension: 3
space: left-posterior-superior
sizes: 432 432 24
space directions: (0.39350563447362186,0.00098769730873018492,-0.0030858777289763093) (0.00066693602513074885,0.34207230580911041,0.19453376351618767) (0.026589041933276651,-1.6313203263046741,2.8684535544373988)
kinds: domain domain domain
endian: little
encoding: raw
space origin: (-86.408600000000007,-47.069099999999999,-132.21199999999999)
ITK_CoordinateOrientation:=

Spacing information is not explicitly written, but I tried loading the dataset in a 3D viewer and it is displayed correctly. Then I realized that spacing can be inferred from transform matrix ("space directions" in NRRD), and that NRRD loading library does it.
(0023632)
Dzenan Zukic (developer)
2010-12-01 03:23

Other program misinterpreted this NRRD file, and I mistakenly thought there is a bug.
(0023637)
Hans Johnson (developer)
2010-12-01 08:58

Need to close this.
(0023638)
Hans Johnson (developer)
2010-12-01 08:58

Closed.

 Issue History
Date Modified Username Field Change
2010-11-30 04:32 Dzenan Zukic New Issue
2010-11-30 11:38 Hans Johnson Assigned To => kentwilliams
2010-11-30 11:38 Hans Johnson Status new => assigned
2010-11-30 11:45 Hans Johnson Assigned To kentwilliams => Hans Johnson
2010-11-30 11:52 Hans Johnson Note Added: 0023582
2010-11-30 11:52 Hans Johnson Status assigned => closed
2010-11-30 11:52 Hans Johnson Resolution open => unable to reproduce
2010-12-01 03:21 Dzenan Zukic Note Added: 0023631
2010-12-01 03:21 Dzenan Zukic Status closed => feedback
2010-12-01 03:21 Dzenan Zukic Resolution unable to reproduce => reopened
2010-12-01 03:23 Dzenan Zukic Resolution Date => 2010-12-01
2010-12-01 03:23 Dzenan Zukic Note Added: 0023632
2010-12-01 03:23 Dzenan Zukic Status feedback => assigned
2010-12-01 03:23 Dzenan Zukic Status assigned => resolved
2010-12-01 03:23 Dzenan Zukic Resolution reopened => no change required
2010-12-01 08:58 Hans Johnson Note Added: 0023637
2010-12-01 08:58 Hans Johnson Status resolved => feedback
2010-12-01 08:58 Hans Johnson Resolution no change required => reopened
2010-12-01 08:58 Hans Johnson Note Added: 0023638
2010-12-01 08:58 Hans Johnson Status feedback => closed
2010-12-01 08:58 Hans Johnson Resolution reopened => fixed


Copyright © 2000 - 2018 MantisBT Team