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 | 34x 34x 34x 204x 204x | import { Enums } from '@cornerstonejs/core'; const MIP = 'mip'; const MINIP = 'minip'; const AVG = 'avg'; export default function getCornerstoneBlendMode(blendMode: string): Enums.BlendModes { if (!blendMode) { return Enums.BlendModes.COMPOSITE; } Iif (blendMode.toLowerCase() === MIP) { return Enums.BlendModes.MAXIMUM_INTENSITY_BLEND; } Iif (blendMode.toLowerCase() === MINIP) { return Enums.BlendModes.MINIMUM_INTENSITY_BLEND; } Iif (blendMode.toLowerCase() === AVG) { return Enums.BlendModes.AVERAGE_INTENSITY_BLEND; } throw new Error(`Unsupported blend mode: ${blendMode}`); } |