Skip to content

Commit 9abe555

Browse files
author
Alexis Girault
committed
Fix dimensions of image data
1 parent feef1f1 commit 9abe555

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/Dicom/src/parseDicomFiles.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ class DICOMSeries extends DICOMEntity {
161161

162162
// Dimensions
163163
const size = [
164-
meta.Rows,
165164
meta.Columns,
165+
meta.Rows,
166166
Object.keys(this.images).length,
167167
]
168168

@@ -460,6 +460,10 @@ async function parseDicomFiles(fileList, ignoreFailedFiles = false) {
460460
const logName = `Parsed ${fileList.length} DICOM files in`
461461
console.time(logName)
462462
await Promise.all(parseFiles).then(() => {
463+
console.log(patients)
464+
if (failures.length > 0) {
465+
console.error(failures[0].error.stack)
466+
}
463467
if (!ignoreFailedFiles && failures.length > 0) {
464468
throw new ParseDicomError(failures)
465469
}

0 commit comments

Comments
 (0)