Add Structure Class #203

Merged
jgeorgi merged 3 commits from bas-new-class into main 2024-10-12 02:28:22 +00:00
2 changed files with 201 additions and 79 deletions
Showing only changes of commit 259465a00b - Show all commits

View File

@@ -104,7 +104,7 @@ export class StructureBox {
} }
} }
export default class Structure { export class Structure {
constructor(structResult) { constructor(structResult) {
this.label = structResult.label this.label = structResult.label
this.confidence = structResult.confidence this.confidence = structResult.confidence

View File

@@ -144,8 +144,7 @@
import touchMixin from './touch-mixin' import touchMixin from './touch-mixin'
import detectionWorker from '@/assets/detect-worker.js?worker&inline' import detectionWorker from '@/assets/detect-worker.js?worker&inline'
import Structure from '../js/structures' import { Structure, StructureBox } from '../js/structures'
import { StructureBox } from '../js/structures'
const regions = ['Thorax','Abdomen/Pelvis','Limbs','Head and Neck'] const regions = ['Thorax','Abdomen/Pelvis','Limbs','Head and Neck']
let activeRegion = 4 let activeRegion = 4