We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48c2a19 + 6fb5866 commit f4aa65bCopy full SHA for f4aa65b
src/metadata.js
@@ -36,8 +36,8 @@ function getFrameMapping(metadata) {
36
let planePositions = functionalGroups[j].PlanePositionSlideSequence[0];
37
let rowPosition = planePositions.RowPositionInTotalImagePixelMatrix;
38
let columnPosition = planePositions.ColumnPositionInTotalImagePixelMatrix;
39
- let rowIndex = Math.ceil(rowPosition / columns);
40
- let colIndex = Math.ceil(columnPosition / rows);
+ let rowIndex = Math.ceil(rowPosition / rows);
+ let colIndex = Math.ceil(columnPosition / columns);
41
let index = rowIndex + '-' + colIndex;
42
let frameNumber = j + 1;
43
frameMapping[index] = `${sopInstanceUID}/frames/${frameNumber}`;
0 commit comments