cigvis.gui.gui3d.sam_controller module#
SAM-like prompt controller used by the PySide6 3D GUI.
- class cigvis.gui.gui3d.sam_controller.Prompt(xyz: 'Tuple[int, int, int]', axis: 'str', slice_pos: 'int', r: 'int', value: 'int' = 250)#
Bases:
object- axis: str#
- r: int#
- slice_pos: int#
- value: int = 250#
- xyz: Tuple[int, int, int]#
- class cigvis.gui.gui3d.sam_controller.SamControllerConfig(mask_overlay_name: 'str' = 'fault', prompt_overlay_name: 'str' = 'prompt', poll_hz: 'float' = 30.0, max_workers: 'int' = 1, prompt_value: 'int' = 250, prompt_radius_min: 'int' = 0, prompt_radius_max: 'int' = 3, prompt_radius_ratio: 'float' = 0.0001)#
Bases:
object- mask_overlay_name: str = 'fault'#
- max_workers: int = 1#
- poll_hz: float = 30.0#
- prompt_overlay_name: str = 'prompt'#
- prompt_radius_max: int = 3#
- prompt_radius_min: int = 0#
- prompt_radius_ratio: float = 0.0001#
- prompt_value: int = 250#
- class cigvis.gui.gui3d.sam_controller.SamLikeController(vol: VolumeImage, canvas, decode_fn: Callable | None = None, on_prompt_count: Callable[[int], None] | None = None, cfg: SamControllerConfig | None = None)#
Bases:
objectConnect Alt-click prompts on
VisCanvasto a user supplied decoder.- close() None#
- prompt_xyz: Tuple[int, int, int] | None#
- submit_decode(xyz: Tuple[int, int, int]) None#