[Insight-users] ImageSeriesWriter creates wrong DICOM directory entries
Thomas Fejes
tfejes at students.unibe.ch
Mon Feb 25 13:00:52 EST 2013
Hello ITK-User,
I am using the Image Series Writer to write a series of DICOM files. In the
past, this class had some problems with the z-spacing (always 1mm).
Fortunately this problem was almost solved with the latest ITK version.
Almost solved because of the following reasons:
I tested the class by reading and writing and reading again the same series.
Based on the fact, that neither a registration nor any other manipulation of
the image has been performed, the Meta Data Dictionary Array should be the
same all over the writing and reading process. THIS is not the case.
The following entries, of the Meta Data Dictionary Array, differ from each
other only by rewriting:
-----------------------------------------------
ID tag: 0018|0088
Original ID tag value: 3.75
Rewritten ID tag value: 1
ID tag: 0018|1310
Original ID tag value: 0\256\224\0
Rewritten ID tag value: 23600\13618\23606\12850\23604\48
ID tag: 0020|0037
Original ID tag value:
1\-2.0397992e-010\2.1439154e-011\2.051035e-010\0.9945219\-0.10452846
Rewritten ID tag value: 1\0\0\0\1\0
ID tag: 0028|0101
Original ID tag value: 12
Rewritten ID tag value: 16
ID tag: 0028|0102
Original ID tag value: 11
Rewritten ID tag value: 15
ID tag: 0028|0103
Original ID tag value: 0
Rewritten ID tag value: 1
ID tag: 0028|0106
Original ID tag value: 0
Rewritten ID tag value: 48
ID tag: 0028|0107
Original ID tag value: 994
Rewritten ID tag value: 14649\52
----------------------------------------------------------------------------
----
ID tag: 0018|0088 -> Is the spacing between slices and automatically set to
1mm. why??
ID tag: 0018|1310 -> Acquisition Matrix. Why does this value change. ?? No
registration has been performed !!
ID tag: 0020|0037-> Image orientation (Patient). The Identity matrix is set
automatically. Why ?? if no changes have been performed, why it must be
changed?? Recalculation ?? See: https://issues.itk.org/jira/browse/ITK-281
ID tag: 0028|0101-> Number of Bits stored. The image has not been changed,
why is this value not the same as on the original image??
ID tag: 0028|0102-> Number of Bits stored. The image has not been changed,
why is this value not the same as on the original image??
ID tag: 0028|0103-> Number of Bits stored. The image has not been changed,
why is this value not the same as on the original image??
ID tag: 0028|0106-> Smallest Image Pixel Value. Why does this value
change???!!!
ID tag: 0028|0107-> Largest Image Pixel Value. It added a dimension??!!
The Tags "Number of Bits stored" differs because I used a higher Bit number
type, I guess. Or are the last four Bits redundant??
Question: Is it possible to change the Meta Data Dictionary Array only,
without touching the images and not using the Image Series Writer class ??
Thanks
Best Regards
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130225/2ffb1ce1/attachment.htm>
More information about the Insight-users
mailing list