https://github.com/farzonl/seamcarving
A CLI tool that grows or shrinks images using a graph cut algorithm.
https://github.com/farzonl/seamcarving
computer-photography computer-vision opencv
Last synced: 11 months ago
JSON representation
A CLI tool that grows or shrinks images using a graph cut algorithm.
- Host: GitHub
- URL: https://github.com/farzonl/seamcarving
- Owner: farzonl
- Created: 2019-04-13T06:49:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-12T07:15:58.000Z (over 5 years ago)
- Last Synced: 2024-10-31T17:46:03.408Z (over 1 year ago)
- Topics: computer-photography, computer-vision, opencv
- Language: C++
- Homepage:
- Size: 24.3 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Seam Carving
## Code status
[](https://codecov.io/gh/farzonl/SeamCarving)
[](https://travis-ci.com/farzonl/SeamCarving)
[](https://lgtm.com/projects/g/farzonl/SeamCarving/alerts/)
[](https://lgtm.com/projects/g/farzonl/SeamCarving/context:cpp)
## Demo
[](https://youtu.be/Curd1u6-itE)
## Dependencies
- opencv
### For Mac
```
brew install opencv
```
### For Linux
- pkg-config (also needed)
```
sudo apt-get install libopencv-dev pkg-config
```
### For Windows
- VS was never tested.
- As a work around you can install the linux subsystem for windows and Xmig for X11 windows
run the linux steps.
## how to build?
```
make
```
## how to run?
- basic usage horizontal shrinking with fixed number of seams:
```
./exec .png|jpg
```
- vertical or horizontal shrinking with fixed number of seams:
```
./exec .png -h|-v
```
- vertical or horizontal shrinking with variable number of seams:
```
./exec .png -h|-v -n
```
-Toggle shrink or grow usage.
```
./exec .png -h|-v -r|-g -n
```
## Code Description

## High Level Pipeline

## Grow Pipeline

## Shrink Pipeline

## Class Presentation

## Final Report
