An open API service indexing awesome lists of open source software.

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

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

![input-file](./peppers.png)
## Segmentation Lapse
Merged result of segmentation pgm files based on given cut count.

![demonstration](https://raw.githubusercontent.com/mehmetumit/color-image-segmentation/main/demo.gif)
## 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
```