https://github.com/mehmetumit/color-image-segmentation
Color Image Segmentation Using Kruskal's MST Algorithm And Graph Cuts
https://github.com/mehmetumit/color-image-segmentation
color-image-segmentation cpp graph graph-cuts kruskal-algorithm minimum-spanning-tree
Last synced: 2 months ago
JSON representation
Color Image Segmentation Using Kruskal's MST Algorithm And Graph Cuts
- Host: GitHub
- URL: https://github.com/mehmetumit/color-image-segmentation
- Owner: mehmetumit
- Created: 2023-10-02T18:09:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-02T19:26:00.000Z (over 1 year ago)
- Last Synced: 2024-12-30T00:28:09.603Z (4 months ago)
- Topics: color-image-segmentation, cpp, graph, graph-cuts, kruskal-algorithm, minimum-spanning-tree
- Language: C++
- Homepage:
- Size: 803 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Color Image Segmentation Using Kruskal's MST Algorithm And Graph Cuts
## Default Input File
peppers.pgm: Netpbm image data, size = 256 x 256, greymap, ASCII text
## Segmentation Lapse
Merged result of segmentation pgm files based on given cut count.
## Build
```
make build
```
## Run
Run with default parameters. Puts output pgm image file to `out` folder by default.
```
make run
```
## Running With Custom Parameters
```
./build/main
```
```
Default parameters
FILE_PATH=./data/peppers.pgm
OUTPUT_DIR=./out/
CUT_COUNT=58
```