From 9ebebf999a355af725ddd88d389c239f9d250e86 Mon Sep 17 00:00:00 2001 From: adrew0809 Date: Tue, 25 Mar 2014 10:46:56 -0700 Subject: [PATCH] Fixes alignment of DICOM data due to failure to round --- io/parserDCM.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/parserDCM.js b/io/parserDCM.js index 151d08aa9..e2a7e85ae 100644 --- a/io/parserDCM.js +++ b/io/parserDCM.js @@ -359,7 +359,7 @@ X.parserDCM.prototype.parse = function(container, object, data, flag) { break; } - first_image_data.set(_data, _distance_position * first_slice_size); + first_image_data.set(_data, Math.round(_distance_position) * first_slice_size); }