Skip to content

copper3d / Modules / Utils/segmentation/tools/SphereTool

Module: Utils/segmentation/tools/SphereTool

Table of contents

Classes

Type Aliases

Variables

Type Aliases

SphereType

Ƭ SphereType: "tumour" | "skin" | "nipple" | "ribcage"

The 4 supported sphere marker types.

Defined in

src/Utils/segmentation/tools/SphereTool.ts:58

Variables

SPHERE_CHANNEL_MAP

Const SPHERE_CHANNEL_MAP: Record<SphereType, { channel: number ; layer: string }>

Default layer and channel for each sphere type.

This mapping is used to:

  1. Determine the color for sphere preview rendering
  2. (Future) Write sphere data into the corresponding layer's MaskVolume channel

Example

ts
const { layer, channel } = SPHERE_CHANNEL_MAP['tumour'];
// layer = 'layer1', channel = 1
const { layer, channel } = SPHERE_CHANNEL_MAP['tumour'];
// layer = 'layer1', channel = 1

Defined in

src/Utils/segmentation/tools/SphereTool.ts:73


SPHERE_LABELS

Const SPHERE_LABELS: Record<SphereType | "default", number>

Label values for sphere types stored in sphereMaskVolume. Regular sphere mode uses SPHERE_LABEL (1). Calculator mode uses type-specific labels (1-4).

Defined in

src/Utils/segmentation/tools/SphereTool.ts:87