feat(tmtv): add ct ranges for thresholding (#3225)
* Add CT volume in PET ROI Thresholding (#3053) * Add CT volume in PET ROI Thresholding * Change UI ROI Threshold config * Refactoring ROI Threshold configuration Panel * fix menus * try to fix build preview * try to fix build preview --------- Co-authored-by: rodrigobasilio2022 <114958722+rodrigobasilio2022@users.noreply.github.com>
This commit is contained in:
1 parent
f14e23cb8b
commit
7a591b87a2
5 files changed
+240
-156
No files matched your search
@@ -173,12 +173,20 @@ const commandsModule = ({
|
||||
);
|
||||
|
||||
const { representationData } = segmentation;
|
||||
const { volumeId: segVolumeId } = representationData[LABELMAP];
|
||||
const {
|
||||
displaySetMatchDetails: matchDetails,
|
||||
} = hangingProtocolService.getMatchDetails();
|
||||
const volumeLoaderScheme = 'cornerstoneStreamingImageVolume'; // Loader id which defines which volume loader to use
|
||||
|
||||
const ctDisplaySet = matchDetails.get('ctDisplaySet');
|
||||
const ctVolumeId = `${volumeLoaderScheme}:${ctDisplaySet.displaySetInstanceUID}`; // VolumeId with loader id + volume id
|
||||
|
||||
const { volumeId: segVolumeId } = representationData[LABELMAP];
|
||||
const { referencedVolumeId } = cs.cache.getVolume(segVolumeId);
|
||||
|
||||
const labelmapVolume = cs.cache.getVolume(segmentationId);
|
||||
const referencedVolume = cs.cache.getVolume(referencedVolumeId);
|
||||
const ctReferencedVolume = cs.cache.getVolume(ctVolumeId);
|
||||
|
||||
if (!referencedVolume) {
|
||||
throw new Error('No Reference volume found');
|
||||
@@ -201,23 +209,20 @@ const commandsModule = ({
|
||||
return;
|
||||
}
|
||||
|
||||
const { lower, upper } = getThresholdValues(
|
||||
const { ptLower, ptUpper, ctLower, ctUpper } = getThresholdValues(
|
||||
annotationUIDs,
|
||||
referencedVolume,
|
||||
[referencedVolume, ctReferencedVolume],
|
||||
config
|
||||
);
|
||||
|
||||
const configToUse = {
|
||||
lower,
|
||||
upper,
|
||||
overwrite: true,
|
||||
};
|
||||
|
||||
return csTools.utilities.segmentation.rectangleROIThresholdVolumeByRange(
|
||||
annotationUIDs,
|
||||
labelmapVolume,
|
||||
[referencedVolume],
|
||||
configToUse
|
||||
[
|
||||
{ volume: referencedVolume, lower: ptLower, upper: ptUpper },
|
||||
{ volume: ctReferencedVolume, lower: ctLower, upper: ctUpper },
|
||||
],
|
||||
{ overwrite: true }
|
||||
);
|
||||
},
|
||||
calculateSuvPeak: ({ labelmap }) => {
|
||||
|
||||
Reference in new issue
Block a user