Skip to content

Commit 5ffaa8b

Browse files
ImagedVolumeDepth in um (#128)
1 parent 83e939b commit 5ffaa8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wsidicom/instance/dataset.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,8 @@ def create_instance_dataset(
738738
dataset.ImagedVolumeHeight = (
739739
image_data.image_size.height * image_data.pixel_spacing.height
740740
)
741-
dataset.ImagedVolumeDepth = pixel_measure_sequence.SliceThickness
741+
# SliceThickness is in mm, ImagedVolumeDepth in um
742+
dataset.ImagedVolumeDepth = pixel_measure_sequence.SliceThickness * 1000
742743
# DICOM 2022a part 3 IODs - C.8.12.9 Whole Slide Microscopy Image
743744
# Frame Type Macro. Analogous to ImageType and shared by all
744745
# frames so clone

0 commit comments

Comments
 (0)