Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 55x 150x 150x 150x 150x 150x 14084x 14084x 14084x 150x | import { utils } from '@ohif/core'; const { toNumber } = utils; /** * Check if the frames in a series has different dimensions * @param {*} instances * @returns */ export default function areAllImageDimensionsEqual(instances: Array<any>): boolean { Iif (!instances?.length) { return false; } const firstImage = instances[0]; const firstImageRows = toNumber(firstImage.Rows); const firstImageColumns = toNumber(firstImage.Columns); for (let i = 1; i < instances.length; i++) { const instance = instances[i]; const { Rows, Columns } = instance; Iif (toNumber(Rows) !== firstImageRows || toNumber(Columns) !== firstImageColumns) { return false; } } return true; } |