main
parent
7a52507d27
commit
db627afeda
|
|
@ -34,9 +34,9 @@
|
||||||
@click.prevent="setToolActive('CircularEraser')">
|
@click.prevent="setToolActive('CircularEraser')">
|
||||||
<svg-icon icon-class="clear" class="svg-icon" />
|
<svg-icon icon-class="clear" class="svg-icon" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <div :class="['tool-item']">
|
<div :class="['tool-item']">
|
||||||
<input type="file" @change="beginScanFiles($event)">
|
<input type="file" @change="beginScanFiles($event)">
|
||||||
</div> -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ConfigBox">
|
<div class="ConfigBox">
|
||||||
<div class="EraserConfig"
|
<div class="EraserConfig"
|
||||||
|
|
@ -1389,12 +1389,13 @@ export default {
|
||||||
let imageId = null
|
let imageId = null
|
||||||
if (isFile) {
|
if (isFile) {
|
||||||
imageId = cornerstoneDICOMImageLoader.wadouri.fileManager.add(obj);
|
imageId = cornerstoneDICOMImageLoader.wadouri.fileManager.add(obj);
|
||||||
|
obj.segmentationId = this.$guid()
|
||||||
|
await this.createSegmentation(obj.segmentationId);
|
||||||
} else {
|
} else {
|
||||||
const imageIdObj = await cornerstoneDICOMImageLoader.wadouri.loadImage(`wadouri:${this.OSSclientConfig.basePath}${obj.segUrl}`).promise
|
const imageIdObj = await cornerstoneDICOMImageLoader.wadouri.loadImage(`wadouri:${this.OSSclientConfig.basePath}${obj.segUrl}`).promise
|
||||||
imageId = imageIdObj.imageId
|
imageId = imageIdObj.imageId
|
||||||
}
|
}
|
||||||
const image = await imageLoader.loadAndCacheImage(imageId);
|
const image = await imageLoader.loadAndCacheImage(imageId);
|
||||||
|
|
||||||
if (!image) {
|
if (!image) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -1423,7 +1424,6 @@ export default {
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await this.createSegmentation(segmentationId);
|
|
||||||
let arr = []
|
let arr = []
|
||||||
generateToolState.segMetadata.data.forEach(item => {
|
generateToolState.segMetadata.data.forEach(item => {
|
||||||
if (item) {
|
if (item) {
|
||||||
|
|
@ -1464,6 +1464,7 @@ export default {
|
||||||
);
|
);
|
||||||
voxelManager.setScalarData(scalarData);
|
voxelManager.setScalarData(scalarData);
|
||||||
}
|
}
|
||||||
|
this.createSegmentationRepresentation(segmentationId)
|
||||||
},
|
},
|
||||||
createSegmentGroupObj(name) {
|
createSegmentGroupObj(name) {
|
||||||
let flag = this.segmentList.some(item => item.name === name)
|
let flag = this.segmentList.some(item => item.name === name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue