feat(segmentation): Enhance Segmentation Tools with Preview and Selection Features (#4870)
This commit is contained in:
1 parent
20042f9109
commit
5f112337b6
24 files changed
+392
-236
No files matched your search
@@ -264,10 +264,14 @@ class SegmentationService extends PubSubService {
|
||||
{
|
||||
segmentationId,
|
||||
type,
|
||||
config,
|
||||
suppressEvents = false,
|
||||
}: {
|
||||
segmentationId: string;
|
||||
type?: csToolsEnums.SegmentationRepresentations;
|
||||
config?: {
|
||||
blendMode?: csEnums.BlendModes;
|
||||
};
|
||||
suppressEvents?: boolean;
|
||||
}
|
||||
): Promise<void> {
|
||||
@@ -301,7 +305,8 @@ class SegmentationService extends PubSubService {
|
||||
segmentationId,
|
||||
representationTypeToUse,
|
||||
colorLUTIndex,
|
||||
isConverted
|
||||
isConverted,
|
||||
config
|
||||
);
|
||||
|
||||
if (!suppressEvents) {
|
||||
@@ -1349,12 +1354,15 @@ class SegmentationService extends PubSubService {
|
||||
segmentationId: string,
|
||||
representationType: csToolsEnums.SegmentationRepresentations,
|
||||
colorLUTIndex: number,
|
||||
isConverted: boolean
|
||||
isConverted: boolean,
|
||||
config?: {
|
||||
blendMode?: csEnums.BlendModes;
|
||||
}
|
||||
): Promise<void> {
|
||||
const representation = {
|
||||
type: representationType,
|
||||
segmentationId,
|
||||
config: { colorLUTOrIndex: colorLUTIndex },
|
||||
config: { colorLUTOrIndex: colorLUTIndex, ...config },
|
||||
};
|
||||
|
||||
const addRepresentation = () =>
|
||||
|
||||
Reference in new issue
Block a user