docs(faq): FAQ and Segmentation Mode Fix for some studies (#3762)

This commit is contained in:
Alireza authored and GitHub committed 2023-11-03 12:19:24 -04:00
1 parent f9f16bc69f
commit ee67bcc0f5
29 files changed
+321 -96

No files matched your search

+2 -2
View File
@@ -35,14 +35,14 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2",
"@cornerstonejs/codec-openjpeg": "^1.2.2",
"@cornerstonejs/codec-openjph": "^2.4.2",
"@cornerstonejs/dicom-image-loader": "^1.20.3",
"@cornerstonejs/dicom-image-loader": "^1.27.3",
"@ohif/ui": "3.8.0-beta.9",
"cornerstone-math": "0.1.9",
"dicom-parser": "^1.8.21"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"dcmjs": "^0.29.11",
"dcmjs": "^0.29.12",
"dicomweb-client": "^0.10.2",
"gl-matrix": "^3.4.3",
"isomorphic-base64": "^1.0.2",
@@ -36,7 +36,7 @@ export default class DisplaySetService extends PubSubService {
};
public activeDisplaySets = [];
public unsuportedSOPClassHandler;
public unsupportedSOPClassHandler;
extensionManager: ExtensionManager;
protected activeDisplaySetsMap = new Map<string, DisplaySet>();
@@ -47,7 +47,7 @@ export default class DisplaySetService extends PubSubService {
constructor() {
super(EVENTS);
this.unsuportedSOPClassHandler =
this.unsupportedSOPClassHandler =
'@ohif/extension-default.sopClassHandlerModule.not-supported-display-sets-handler';
}
@@ -81,7 +81,7 @@ export default class DisplaySetService extends PubSubService {
* @param sopClassHandlerUID
*/
public setUnsuportedSOPClassHandler(sopClassHandler) {
this.unsuportedSOPClassHandler = sopClassHandler;
this.unsupportedSOPClassHandler = sopClassHandler;
}
/**
@@ -384,7 +384,7 @@ export default class DisplaySetService extends PubSubService {
// applying the default sopClassUID handler
if (allDisplaySets.length === 0) {
// applying hp-defined viewport settings to the displaysets
const handler = this.extensionManager.getModuleEntry(this.unsuportedSOPClassHandler);
const handler = this.extensionManager.getModuleEntry(this.unsupportedSOPClassHandler);
const displaySets = handler.getDisplaySetsFromSeries(instances);
if (displaySets?.length) {
displaySets.forEach(ds => {
@@ -14,15 +14,12 @@ export default function isDisplaySetReconstructable(instances) {
if (!instances.length) {
return { value: false };
}
const firstInstance = instances[0];
const Modality = firstInstance.Modality;
const isMultiframe = firstInstance.NumberOfFrames > 1;
if (!constructableModalities.includes(Modality)) {
return { value: false };
}
// We used to check is reconstructable modalities here, but the logic is removed
// in favor of the calculation by metadata (orientation and positions)
// Can't reconstruct if we only have one image.
if (!isMultiframe && instances.length === 1) {