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