# didsr/lesionblender architecture

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

- Interactive diagram: https://gitdiagram.com/didsr/lesionblender
- Repository: https://github.com/didsr/lesionblender

## Overview

LesionBlender is a MATLAB image-processing toolkit for automatically inserting lesions from one image into another with seamless blending. The README establishes that product-level purpose but does not describe a user-facing workflow or how the modules call one another. The graph therefore groups the substantial MATLAB modules by apparent responsibility without asserting unsupported control or data-flow edges; source excerpts were unavailable.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_blending["Lesion blending"]
  node_lesion_blender["Image blending"]
  node_blend_gui["Blend GUI<br/>[simpleBlendGUI.m]"]
  node_blend_demo["Solver demo"]
end

subgraph group_solver["Sparse processing"]
  node_poisson_solver["Poisson solver"]
  node_optimal_boundary["Optimal boundary"]
  node_sparse_adjacency["Sparse adjacency<br/>[AdjMatrixSparse.m]"]
  node_cut_finder["Cut finder<br/>[FindcutSparse.m]"]
end

subgraph group_utilities["Path and gradient utilities"]
  node_dijkstra["Dijkstra search<br/>[DijkstraSparse.m]"]
  node_pred_path["Predecessor paths<br/>[Pred2path.m]"]
  node_image_gradient["Image gradients<br/>[imgrad.m]"]
end

click node_lesion_blender "https://github.com/didsr/lesionblender/blob/master/ImageBlenderSparse.m"
click node_blend_gui "https://github.com/didsr/lesionblender/blob/master/simpleBlendGUI.m"
click node_blend_demo "https://github.com/didsr/lesionblender/blob/master/PoissonSparseSolverDemo.m"
click node_poisson_solver "https://github.com/didsr/lesionblender/blob/master/PoissonSparseSolver.m"
click node_optimal_boundary "https://github.com/didsr/lesionblender/blob/master/PoissonOptimalBoundarySparse.m"
click node_sparse_adjacency "https://github.com/didsr/lesionblender/blob/master/AdjMatrixSparse.m"
click node_cut_finder "https://github.com/didsr/lesionblender/blob/master/FindcutSparse.m"
click node_dijkstra "https://github.com/didsr/lesionblender/blob/master/DijkstraSparse.m"
click node_pred_path "https://github.com/didsr/lesionblender/blob/master/Pred2path.m"
click node_image_gradient "https://github.com/didsr/lesionblender/blob/master/imgrad.m"

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_lesion_blender,node_blend_gui,node_blend_demo toneBlue
class node_poisson_solver,node_optimal_boundary,node_sparse_adjacency,node_cut_finder toneAmber
class node_dijkstra,node_pred_path,node_image_gradient toneMint
```

## Components

### Lesion blending

- [Image blending](https://github.com/didsr/lesionblender/blob/master/ImageBlenderSparse.m): `ImageBlenderSparse.m`
- [Blend GUI](https://github.com/didsr/lesionblender/blob/master/simpleBlendGUI.m): `simpleBlendGUI.m`
- [Solver demo](https://github.com/didsr/lesionblender/blob/master/PoissonSparseSolverDemo.m): `PoissonSparseSolverDemo.m`

### Sparse processing

- [Poisson solver](https://github.com/didsr/lesionblender/blob/master/PoissonSparseSolver.m): `PoissonSparseSolver.m`
- [Optimal boundary](https://github.com/didsr/lesionblender/blob/master/PoissonOptimalBoundarySparse.m): `PoissonOptimalBoundarySparse.m`
- [Sparse adjacency](https://github.com/didsr/lesionblender/blob/master/AdjMatrixSparse.m): `AdjMatrixSparse.m`
- [Cut finder](https://github.com/didsr/lesionblender/blob/master/FindcutSparse.m): `FindcutSparse.m`

### Path and gradient utilities

- [Dijkstra search](https://github.com/didsr/lesionblender/blob/master/DijkstraSparse.m): `DijkstraSparse.m`
- [Predecessor paths](https://github.com/didsr/lesionblender/blob/master/Pred2path.m): `Pred2path.m`
- [Image gradients](https://github.com/didsr/lesionblender/blob/master/imgrad.m): `imgrad.m`
