fix(seg): orthanc seg (#4883)
This commit is contained in:
parent
209d81f475
commit
4dd485bd2d
@ -537,9 +537,9 @@ const WADO_IMAGE_LOADER = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ImageOrientationPatient) {
|
if (ImageOrientationPatient) {
|
||||||
rowCosines = ImageOrientationPatient.slice(0, 3);
|
rowCosines = toNumber(ImageOrientationPatient.slice(0, 3));
|
||||||
columnCosines = ImageOrientationPatient.slice(3, 6);
|
columnCosines = toNumber(ImageOrientationPatient.slice(3, 6));
|
||||||
imageOrientationPatient = ImageOrientationPatient;
|
imageOrientationPatient = toNumber(ImageOrientationPatient);
|
||||||
} else {
|
} else {
|
||||||
rowCosines = [1, 0, 0];
|
rowCosines = [1, 0, 0];
|
||||||
columnCosines = [0, 1, 0];
|
columnCosines = [0, 1, 0];
|
||||||
@ -549,7 +549,7 @@ const WADO_IMAGE_LOADER = {
|
|||||||
isDefaultValueSetForColumnCosine = true;
|
isDefaultValueSetForColumnCosine = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const imagePositionPatient = ImagePositionPatient || [0, 0, 0];
|
const imagePositionPatient = toNumber(ImagePositionPatient) || [0, 0, 0];
|
||||||
if (!ImagePositionPatient) {
|
if (!ImagePositionPatient) {
|
||||||
usingDefaultValues = true;
|
usingDefaultValues = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user