fix: combine frame instance (#4792)

This commit is contained in:
Pedro H. Köhler 2025-02-20 11:21:44 -03:00 committed by GitHub
parent 2e70f0ffa1
commit 55f0b54db1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,8 +37,8 @@ const combineFrameInstance = (frame, instance) => {
let imagePositionPatient = instance.DetectorInformationSequence[0].ImagePositionPatient;
let imageOrientationPatient = instance.ImageOrientationPatient;
imagePositionPatient = imagePositionPatient.map(it => Number(it));
imageOrientationPatient = imageOrientationPatient.map(it => Number(it));
imagePositionPatient = imagePositionPatient?.map(it => Number(it));
imageOrientationPatient = imageOrientationPatient?.map(it => Number(it));
const SpacingBetweenSlices = Number(instance.SpacingBetweenSlices);
// Calculate the position for the current frame