-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from epam/EPMUII-8311-Enable-16-bit-rendering…
…-option EPMUII 8311 enable 16 bit rendering option
- Loading branch information
Showing
26 changed files
with
476 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright 2021 EPAM Systems, Inc. (https://www.epam.com/) | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import { DEFAULT_WIN_MAX, DEFAULT_WIN_MIN } from '../../ui/Constants/WindowSet.constants'; | ||
/** | ||
* Apply window range data (min,max) | ||
*/ | ||
export const applyWindowRangeData = (store, windowMin = DEFAULT_WIN_MIN, windowMax = DEFAULT_WIN_MAX) => { | ||
const loaderDicom = store.loaderDicom; | ||
const volSet = store.volumeSet; | ||
// set loader features according current modal properties (window min, max) | ||
loaderDicom.m_windowCenter = (windowMin + windowMax) * 0.5; | ||
loaderDicom.m_windowWidth = windowMax - windowMin; | ||
// apply for single slice dicom read | ||
// select 1st slice and hash | ||
const series = loaderDicom.m_slicesVolume.getSeries(); | ||
const numSeries = series.length; | ||
for (let i = 0; i < numSeries; i++) { | ||
const hashCode = series[i].m_hash; | ||
loaderDicom.createVolumeFromSlices(volSet, i, hashCode); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright 2023 EPAM Systems, Inc. (https://www.epam.com/) | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
export const LARGE_NUMBER = 0x3fffffff; | ||
export const DEFAULT_WIN_MIN = 650 - 2000 / 2; | ||
export const DEFAULT_WIN_MAX = 650 + 2000 / 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.