dcm4che - Get Dicom image position into a sequence -
a simple question developing java application based on dcm4che ...
i want calculate/find "position" of dicom image sequence (series). position mean find if image first, second etc. in series. more calculate/find:
number of slices sequence
position of each slice (dicom image) sequence
for first question know can use tag 0020,1002 (however not populated) ... second one?
we use instancenumber tag (0x0020, 0x0013) our first choice slice position. if there no instancenumber, or if same, use slicelocation tag (0x0020, 0x1041). if neither tag available, give up.
we check instancenumber tag such max(instancenumber) - min(instancenumber) + 1 equal number of slices have in sequence (just in case manufacturers start counting @ 0 or 1, or other number). check slicelocation same way.
this max - min + 1 number of slices in sequence (substitute tag imagesinacquisition 0x0020, 0x1002).
without imagesinacquisition tag, have no way of knowing in advance how many slices expect...
Comments
Post a Comment