feat(segmentation mode): Add create, and export SEG with Brushes (#3632)
This commit is contained in:
1 parent
896866e9d0
commit
48bbd6281a
186 files changed
+6801
-2883
No files matched your search
@@ -338,29 +338,6 @@ function MicroscopyPanel(props: IMicroscopyPanelProps) {
|
||||
onEdit={onMeasurementItemEditHandler}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex justify-center p-4">
|
||||
<ButtonGroup color="black" size="inherit">
|
||||
{/* Let's hide the save button for now, as export SR for SM is a proof of concept */}
|
||||
{/*{promptSave && (
|
||||
<Button
|
||||
className="px-2 py-2 text-base"
|
||||
size="initial"
|
||||
variant={disabled ? 'disabled' : 'outlined'}
|
||||
color="black"
|
||||
border="primaryActive"
|
||||
onClick={promptSave}
|
||||
>
|
||||
{props.t('Create Report')}
|
||||
</Button>
|
||||
)} */}
|
||||
{/* <Button
|
||||
className="px-2 py-2 text-base"
|
||||
onClick={onDeleteCurrentSRHandler}
|
||||
>
|
||||
{props.t('Reject latest report')}
|
||||
</Button> */}
|
||||
</ButtonGroup>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -60,10 +60,10 @@ export default function constructSR(metadata, { SeriesDescription, SeriesNumber
|
||||
const { roiGraphic: roi, label } = annotations[i];
|
||||
let { measurements, evaluations, marker, presentationState } = roi.properties;
|
||||
|
||||
console.debug('[SR] storing marker...', marker);
|
||||
console.debug('[SR] storing measurements...', measurements);
|
||||
console.debug('[SR] storing evaluations...', evaluations);
|
||||
console.debug('[SR] storing presentation state...', presentationState);
|
||||
console.log('[SR] storing marker...', marker);
|
||||
console.log('[SR] storing measurements...', measurements);
|
||||
console.log('[SR] storing evaluations...', evaluations);
|
||||
console.log('[SR] storing presentation state...', presentationState);
|
||||
|
||||
if (presentationState) {
|
||||
presentationState.marker = marker;
|
||||
|
||||
@@ -149,12 +149,12 @@ async function _getROIsFromToolState(naturalizedDataset, FrameOfReferenceUID) {
|
||||
|
||||
if (measurements && measurements.length) {
|
||||
properties.measurements = measurements;
|
||||
console.debug('[SR] retrieving measurements...', measurements);
|
||||
console.log('[SR] retrieving measurements...', measurements);
|
||||
}
|
||||
|
||||
if (evaluations && evaluations.length) {
|
||||
properties.evaluations = evaluations;
|
||||
console.debug('[SR] retrieving evaluations...', evaluations);
|
||||
console.log('[SR] retrieving evaluations...', evaluations);
|
||||
}
|
||||
|
||||
const roi = new DICOMMicroscopyViewer.roi.ROI({ scoord3d, properties });
|
||||
|
||||
Reference in new issue
Block a user