From 4dd485bd2d927381bbc2910a2ec545c7d4c03868 Mon Sep 17 00:00:00 2001 From: Alireza Date: Tue, 25 Mar 2025 10:59:19 -0400 Subject: [PATCH] fix(seg): orthanc seg (#4883) --- platform/core/src/classes/MetadataProvider.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/core/src/classes/MetadataProvider.ts b/platform/core/src/classes/MetadataProvider.ts index a6cb4125c..9b5319535 100644 --- a/platform/core/src/classes/MetadataProvider.ts +++ b/platform/core/src/classes/MetadataProvider.ts @@ -537,9 +537,9 @@ const WADO_IMAGE_LOADER = { } if (ImageOrientationPatient) { - rowCosines = ImageOrientationPatient.slice(0, 3); - columnCosines = ImageOrientationPatient.slice(3, 6); - imageOrientationPatient = ImageOrientationPatient; + rowCosines = toNumber(ImageOrientationPatient.slice(0, 3)); + columnCosines = toNumber(ImageOrientationPatient.slice(3, 6)); + imageOrientationPatient = toNumber(ImageOrientationPatient); } else { rowCosines = [1, 0, 0]; columnCosines = [0, 1, 0]; @@ -549,7 +549,7 @@ const WADO_IMAGE_LOADER = { isDefaultValueSetForColumnCosine = true; } - const imagePositionPatient = ImagePositionPatient || [0, 0, 0]; + const imagePositionPatient = toNumber(ImagePositionPatient) || [0, 0, 0]; if (!ImagePositionPatient) { usingDefaultValues = true; }