# naghmenazer/diabetes-iridology architecture

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

- Interactive diagram: https://gitdiagram.com/naghmenazer/diabetes-iridology
- Repository: https://github.com/naghmenazer/diabetes-iridology

## Overview

This repository supports iris-image research for predicting diabetes. Its main workflow runs from preprocessed image data through region-based feature extraction and classification, with results evaluated by the command-line experiment in Main.py. A separate preprocessing capability detects iris and pupil contours and unwraps the iris ring into a rectangular image. The README documents image-splitting variants and dataset use; the sampled Main.py excerpt omits some loading details, so those links are grounded in the README rather than inferred from unseen code.

Main entry points: [`Main.py`](https://github.com/naghmenazer/diabetes-iridology/blob/master/Main.py) (Experiment runner), [`Data.zip`](https://github.com/naghmenazer/diabetes-iridology/blob/master/Data.zip) (Preprocessed iris data), [`pre processing/iris_pupil_detection.py`](https://github.com/naghmenazer/diabetes-iridology/blob/master/pre%20processing/iris_pupil_detection.py) (Iris and pupil detection), [`featureExtraction.py`](https://github.com/naghmenazer/diabetes-iridology/blob/master/featureExtraction.py) (Region features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experiment["Experiment workflow"]
  node_dataset[("Preprocessed iris data<br/>[Data.zip]")]
  node_runner["Experiment runner<br/>[Main.py]"]
  node_results["Classification results<br/>[Main.py]"]
end

subgraph group_features["Feature analysis"]
  node_feature_methods["Region features"]
  node_classifiers["Classifiers<br/>[Classifying.py]"]
end

subgraph group_preprocessing["Image preprocessing"]
  node_contour_detection["Iris and pupil detection"]
  node_polar_transform["Iris ring unwrapping"]
end

node_researcher(("Researcher"))

node_researcher -->|"runs experiment"| node_runner
node_dataset -->|"provides images"| node_runner
node_runner -->|"extracts features"| node_feature_methods
node_runner -->|"calls classifier"| node_classifiers
node_runner -->|"evaluates predictions"| node_results
node_contour_detection -->|"unwraps iris"| node_polar_transform

click node_dataset "https://github.com/naghmenazer/diabetes-iridology/blob/master/Data.zip"
click node_runner "https://github.com/naghmenazer/diabetes-iridology/blob/master/Main.py"
click node_results "https://github.com/naghmenazer/diabetes-iridology/blob/master/Main.py"
click node_feature_methods "https://github.com/naghmenazer/diabetes-iridology/blob/master/featureExtraction.py"
click node_classifiers "https://github.com/naghmenazer/diabetes-iridology/blob/master/Classifying.py"
click node_contour_detection "https://github.com/naghmenazer/diabetes-iridology/blob/master/pre%20processing/iris_pupil_detection.py"
click node_polar_transform "https://github.com/naghmenazer/diabetes-iridology/blob/master/pre%20processing/semiPolarTransformation.py"

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_dataset,node_runner,node_results toneBlue
class node_feature_methods,node_classifiers toneAmber
class node_contour_detection,node_polar_transform toneMint
class node_researcher toneIndigo
```

## Components

### Experiment workflow

- [Preprocessed iris data](https://github.com/naghmenazer/diabetes-iridology/blob/master/Data.zip): `Data.zip`
- [Experiment runner](https://github.com/naghmenazer/diabetes-iridology/blob/master/Main.py): `Main.py`
- [Classification results](https://github.com/naghmenazer/diabetes-iridology/blob/master/Main.py): `Main.py`

### Feature analysis

- [Region features](https://github.com/naghmenazer/diabetes-iridology/blob/master/featureExtraction.py): `featureExtraction.py`
- [Classifiers](https://github.com/naghmenazer/diabetes-iridology/blob/master/Classifying.py): `Classifying.py`

### Image preprocessing

- [Iris and pupil detection](https://github.com/naghmenazer/diabetes-iridology/blob/master/pre%20processing/iris_pupil_detection.py): `pre processing/iris_pupil_detection.py`
- [Iris ring unwrapping](https://github.com/naghmenazer/diabetes-iridology/blob/master/pre%20processing/semiPolarTransformation.py): `pre processing/semiPolarTransformation.py`

### Other components

- **Researcher**

## Connections

- Researcher → Experiment runner: runs experiment (evidence: `README.md`)
- Preprocessed iris data → Experiment runner: provides images (evidence: `README.md`)
- Experiment runner → Region features: extracts features (evidence: `Main.py`)
- Experiment runner → Classifiers: calls classifier (evidence: `Main.py`)
- Experiment runner → Classification results: evaluates predictions (evidence: `Main.py`)
- Iris and pupil detection → Iris ring unwrapping: unwraps iris (evidence: `pre processing/iris_pupil_detection.py`)
