# pixmeo/osirixplugins architecture

> Architecture diagram of the GitHub repository pixmeo/osirixplugins, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pixmeo/osirixplugins
- Repository: https://github.com/pixmeo/osirixplugins

## Overview

This repository is a collection of OsiriX medical-imaging plugins, rather than one standalone application. The source index identifies PetSpectFusion as the central module set; its visible workflow is configuring registration between fixed and moving image viewers and launching registration. The settings controller also exposes metric calculation, parameter adjustment, and multiresolution controls. The graph reflects those documented interfaces and imports; implementation details of registration and its results were not sampled, so their internal flow is left unspecified.

Main entry points: [`PetSpectFusion/PSFSettingsWindowController.h`](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/PSFSettingsWindowController.h) (Registration settings), [`PetSpectFusion/Registration.h`](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/Registration.h) (Registration), [`PetSpectFusion/RegObserver.h`](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/RegObserver.h) (Iteration observer), [`PetSpectFusion/Typedefs.h`](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/Typedefs.h) (Registration types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Registration workflow"]
  node_settings["Registration settings"]
  node_viewers["Fixed and moving viewers"]
end

subgraph group_engine["Registration internals"]
  node_registration["Registration<br/>[Registration.h]"]
  node_observer["Iteration observer<br/>[RegObserver.h]"]
  node_types["Registration types<br/>[Typedefs.h]"]
end

subgraph group_imaging["Image processing"]
  node_itk["ITK image and transform"]
end

node_user(("OsiriX user"))

node_user -->|"configures"| node_settings
node_settings -->|"initializes from"| node_viewers
node_settings -->|"imports"| node_registration
node_settings -->|"imports"| node_observer
node_settings -->|"includes"| node_types
node_settings -->|"uses types"| node_itk

click node_settings "https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/PSFSettingsWindowController.h"
click node_registration "https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/Registration.h"
click node_observer "https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/RegObserver.h"
click node_types "https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/Typedefs.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_settings,node_viewers,node_user toneBlue
class node_registration,node_observer,node_types toneAmber
class node_itk toneMint
```

## Components

### Registration workflow

- [Registration settings](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/PSFSettingsWindowController.h): `PetSpectFusion/PSFSettingsWindowController.h`
- **Fixed and moving viewers**

### Registration internals

- [Registration](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/Registration.h): `PetSpectFusion/Registration.h`
- [Iteration observer](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/RegObserver.h): `PetSpectFusion/RegObserver.h`
- [Registration types](https://github.com/pixmeo/osirixplugins/blob/develop/PetSpectFusion/Typedefs.h): `PetSpectFusion/Typedefs.h`

### Image processing

- **ITK image and transform**

### Other components

- **OsiriX user**

## Connections

- OsiriX user → Registration settings: configures (evidence: `PetSpectFusion/PSFSettingsWindowController.h`)
- Registration settings → Fixed and moving viewers: initializes from (evidence: `PetSpectFusion/PSFSettingsWindowController.h`)
- Registration settings → Registration: imports (evidence: `PetSpectFusion/PSFSettingsWindowController.h`)
- Registration settings → Iteration observer: imports (evidence: `PetSpectFusion/PSFSettingsWindowController.h`)
- Registration settings → Registration types: includes (evidence: `PetSpectFusion/PSFSettingsWindowController.h`)
- Registration settings → ITK image and transform: uses types (evidence: `PetSpectFusion/PSFSettingsWindowController.h`)
