# yuepanedward/roadmarkingextraction architecture

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

- Interactive diagram: https://gitdiagram.com/yuepanedward/roadmarkingextraction
- Repository: https://github.com/yuepanedward/roadmarkingextraction

## Overview

RoadMarkingExtraction processes mobile or airborne laser-scanning point clouds to extract, classify, and vectorize road markings. The documented workflow configures input data, parameters, and a marking-model pool, then produces results for point-cloud and DXF visualization. The graph preserves the principal processing stages and the DXF output subsystem. The README documents the overall workflow, but sampled excerpts do not show the runtime orchestrator or calls between most processing stages, so those relationships are left unasserted.

Main entry points: [`src/data_io.cpp`](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/data_io.cpp) (Point-cloud I/O), [`src/modelmatch.cpp`](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/modelmatch.cpp) (Model matching), [`config`](https://github.com/yuepanedward/roadmarkingextraction/tree/master/config) (Processing parameters), [`model_pool`](https://github.com/yuepanedward/roadmarkingextraction/tree/master/model_pool) (Marking models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Input and configuration"]
  node_clouds["LAS / PCD clouds"]
  node_parameters["Processing parameters"]
  node_templates["Marking models"]
  node_dataio["Point-cloud I/O<br/>[data_io.cpp]"]
end

subgraph group_processing["Point-cloud processing"]
  node_ground["Ground extraction"]
  node_cloudprocess["Cloud segmentation"]
  node_imageprocess["Image processing<br/>[imageprocess.cpp]"]
end

subgraph group_markings["Marking extraction"]
  node_modelmatch["Model matching<br/>[modelmatch.cpp]"]
  node_classification["Marking classification"]
  node_vectorization["Marking vectorization"]
  node_roadmarkings["Marking data<br/>[utility.h]"]
end

subgraph group_output["Vector output"]
  node_dxfcore["DXF entities and API"]
  node_dxfwriter["ASCII DXF writer"]
  node_results["Point-cloud and DXF results"]
end

node_user(("Operator"))

node_user -->|"provides"| node_clouds
node_user -->|"configures"| node_parameters
node_user -->|"prepares"| node_templates
node_clouds -.->|"reads"| node_dataio
node_parameters -.->|"configures"| node_dataio
node_templates -.->|"matches against"| node_modelmatch
node_dataio -.->|"supplies clouds"| node_ground
node_ground -.->|"provides ground data"| node_cloudprocess
node_cloudprocess -.->|"projects clouds"| node_imageprocess
node_imageprocess -.->|"provides candidates"| node_modelmatch
node_modelmatch -.->|"identifies markings"| node_classification
node_classification -.->|"classifies for"| node_vectorization
node_vectorization -.->|"produces"| node_roadmarkings
node_roadmarkings -.->|"vectorizes to DXF"| node_dxfcore
node_dxfcore -.->|"writes through"| node_dxfwriter
node_dxfwriter -.->|"writes"| node_results
node_dataio -->|"provides I/O support"| node_modelmatch

click node_parameters "https://github.com/yuepanedward/roadmarkingextraction/tree/master/config"
click node_templates "https://github.com/yuepanedward/roadmarkingextraction/tree/master/model_pool"
click node_dataio "https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/data_io.cpp"
click node_ground "https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/ground_extraction.cpp"
click node_cloudprocess "https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/pointcloudprocess.cpp"
click node_imageprocess "https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/imageprocess.cpp"
click node_modelmatch "https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/modelmatch.cpp"
click node_classification "https://github.com/yuepanedward/roadmarkingextraction/blob/master/include/pointcloudprocess.h"
click node_vectorization "https://github.com/yuepanedward/roadmarkingextraction/blob/master/include/pointcloudprocess.h"
click node_roadmarkings "https://github.com/yuepanedward/roadmarkingextraction/blob/master/include/utility.h"
click node_dxfcore "https://github.com/yuepanedward/roadmarkingextraction/tree/master/include/dxflib"
click node_dxfwriter "https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/dl_writer_ascii.cpp"

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_clouds,node_parameters,node_templates,node_dataio toneBlue
class node_ground,node_cloudprocess,node_imageprocess toneAmber
class node_modelmatch,node_classification,node_vectorization,node_roadmarkings toneMint
class node_dxfcore,node_dxfwriter,node_results toneRose
class node_user toneIndigo
```

## Components

### Input and configuration

- **LAS / PCD clouds**
- [Processing parameters](https://github.com/yuepanedward/roadmarkingextraction/tree/master/config): `config`
- [Marking models](https://github.com/yuepanedward/roadmarkingextraction/tree/master/model_pool): `model_pool`
- [Point-cloud I/O](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/data_io.cpp): `src/data_io.cpp`

### Point-cloud processing

- [Ground extraction](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/ground_extraction.cpp): `src/ground_extraction.cpp`
- [Cloud segmentation](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/pointcloudprocess.cpp): `src/pointcloudprocess.cpp`
- [Image processing](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/imageprocess.cpp): `src/imageprocess.cpp`

### Marking extraction

- [Model matching](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/modelmatch.cpp): `src/modelmatch.cpp`
- [Marking classification](https://github.com/yuepanedward/roadmarkingextraction/blob/master/include/pointcloudprocess.h): `include/pointcloudprocess.h`
- [Marking vectorization](https://github.com/yuepanedward/roadmarkingextraction/blob/master/include/pointcloudprocess.h): `include/pointcloudprocess.h`
- [Marking data](https://github.com/yuepanedward/roadmarkingextraction/blob/master/include/utility.h): `include/utility.h`

### Vector output

- [DXF entities and API](https://github.com/yuepanedward/roadmarkingextraction/tree/master/include/dxflib): `include/dxflib`
- [ASCII DXF writer](https://github.com/yuepanedward/roadmarkingextraction/blob/master/src/dl_writer_ascii.cpp): `src/dl_writer_ascii.cpp`
- **Point-cloud and DXF results**

### Other components

- **Operator**

## Connections

- Operator → LAS / PCD clouds: provides (evidence: `README.md`)
- Operator → Processing parameters: configures (evidence: `README.md`)
- Operator → Marking models: prepares (evidence: `README.md`)
- LAS / PCD clouds → Point-cloud I/O: reads
- Processing parameters → Point-cloud I/O: configures
- Marking models → Model matching: matches against
- Point-cloud I/O → Ground extraction: supplies clouds
- Ground extraction → Cloud segmentation: provides ground data
- Cloud segmentation → Image processing: projects clouds
- Image processing → Model matching: provides candidates
- Model matching → Marking classification: identifies markings
- Marking classification → Marking vectorization: classifies for (evidence: `include/pointcloudprocess.h`)
- Marking vectorization → Marking data: produces (evidence: `include/pointcloudprocess.h`)
- Marking data → DXF entities and API: vectorizes to DXF
- DXF entities and API → ASCII DXF writer: writes through (evidence: `src/dl_writer_ascii.cpp`)
- ASCII DXF writer → Point-cloud and DXF results: writes
- Point-cloud I/O → Model matching: provides I/O support (evidence: `src/modelmatch.cpp`)
