# woody544/preciseedge-v-grabcut architecture

> Architecture diagram of the GitHub repository woody544/preciseedge-v-grabcut, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/woody544/preciseedge-v-grabcut
- Repository: https://github.com/woody544/preciseedge-v-grabcut

## Overview

This repository’s executable component is a small Tkinter-based analysis script for comparing PreciseEdge and GrabCut measurement and stroke-count data. The visible workflow selects CSV files, calculates correlations or compares paired stroke counts, writes statistical results, and generates distribution plots. The README also describes the upstream image-segmentation experiment, but no segmentation implementation appears in the tree. The graph therefore focuses on the sampled analysis code; class wiring and some output details are not visible in the excerpts.

Main entry points: [`gcvpestats.py`](https://github.com/woody544/preciseedge-v-grabcut/blob/main/gcvpestats.py) (Stroke Comparison), [`Data/plots-stats`](https://github.com/woody544/preciseedge-v-grabcut/tree/main/Data/plots-stats) (Stats Reports)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_analyst(("Analyst"))
node_within["PE Correlations<br/>[gcvpestats.py]"]
node_compare["Stroke Comparison<br/>[gcvpestats.py]"]
node_gof["Distribution Plots<br/>[gcvpestats.py]"]
node_csv["Selected CSV"]
node_reports["Stats Reports"]
node_plots["Diagnostic Plots"]

node_analyst -->|"selects input"| node_within
node_analyst -->|"selects inputs"| node_compare
node_csv -->|"loads data"| node_within
node_csv -->|"loads data"| node_compare
node_compare -->|"writes tests"| node_reports
node_compare -->|"calls"| node_gof
node_gof -->|"writes plots"| node_plots

click node_within "https://github.com/woody544/preciseedge-v-grabcut/blob/main/gcvpestats.py"
click node_compare "https://github.com/woody544/preciseedge-v-grabcut/blob/main/gcvpestats.py"
click node_gof "https://github.com/woody544/preciseedge-v-grabcut/blob/main/gcvpestats.py"
click node_reports "https://github.com/woody544/preciseedge-v-grabcut/tree/main/Data/plots-stats"
click node_plots "https://github.com/woody544/preciseedge-v-grabcut/tree/main/Data/plots-stats"

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_analyst,node_csv toneIndigo
class node_within,node_compare,node_gof,node_reports,node_plots toneTeal
```

## Components

### Other components

- **Analyst**
- [PE Correlations](https://github.com/woody544/preciseedge-v-grabcut/blob/main/gcvpestats.py): `gcvpestats.py`
- [Stroke Comparison](https://github.com/woody544/preciseedge-v-grabcut/blob/main/gcvpestats.py): `gcvpestats.py`
- [Distribution Plots](https://github.com/woody544/preciseedge-v-grabcut/blob/main/gcvpestats.py): `gcvpestats.py`
- **Selected CSV**
- [Stats Reports](https://github.com/woody544/preciseedge-v-grabcut/tree/main/Data/plots-stats): `Data/plots-stats`
- [Diagnostic Plots](https://github.com/woody544/preciseedge-v-grabcut/tree/main/Data/plots-stats): `Data/plots-stats`

## Connections

- Analyst → PE Correlations: selects input (evidence: `gcvpestats.py`)
- Analyst → Stroke Comparison: selects inputs (evidence: `gcvpestats.py`)
- Selected CSV → PE Correlations: loads data (evidence: `gcvpestats.py`)
- Selected CSV → Stroke Comparison: loads data (evidence: `gcvpestats.py`)
- Stroke Comparison → Stats Reports: writes tests (evidence: `gcvpestats.py`)
- Stroke Comparison → Distribution Plots: calls (evidence: `gcvpestats.py`)
- Distribution Plots → Diagnostic Plots: writes plots (evidence: `gcvpestats.py`)
