{"id":15398059,"url":"https://github.com/farzonl/seamcarving","last_synced_at":"2025-08-03T14:31:42.597Z","repository":{"id":69082774,"uuid":"181132528","full_name":"farzonl/SeamCarving","owner":"farzonl","description":"A CLI tool that grows or shrinks images using a graph cut algorithm.","archived":false,"fork":false,"pushed_at":"2021-02-12T07:15:58.000Z","size":25462,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-31T17:46:03.408Z","etag":null,"topics":["computer-photography","computer-vision","opencv"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farzonl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-13T06:49:44.000Z","updated_at":"2021-02-12T07:16:00.000Z","dependencies_parsed_at":"2023-02-23T15:00:42.836Z","dependency_job_id":null,"html_url":"https://github.com/farzonl/SeamCarving","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2FSeamCarving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2FSeamCarving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2FSeamCarving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2FSeamCarving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farzonl","download_url":"https://codeload.github.com/farzonl/SeamCarving/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228548573,"owners_count":17935222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-photography","computer-vision","opencv"],"created_at":"2024-10-01T15:40:41.292Z","updated_at":"2024-12-07T01:41:14.614Z","avatar_url":"https://github.com/farzonl.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seam Carving\n\n## Code status\n[![codecov](https://codecov.io/gh/farzonl/SeamCarving/branch/master/graph/badge.svg)](https://codecov.io/gh/farzonl/SeamCarving)\n[![Build Status](https://travis-ci.com/farzonl/SeamCarving.svg?branch=master)](https://travis-ci.com/farzonl/SeamCarving)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/farzonl/SeamCarving.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/farzonl/SeamCarving/alerts/)\n[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/farzonl/SeamCarving.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/farzonl/SeamCarving/context:cpp)\n\n## Demo\n[![Fluid Simulation](https://raw.githubusercontent.com/farzonl/SeamCarving/master/documentation/Result.png)](https://youtu.be/Curd1u6-itE)\n\n## Dependencies\n- opencv\n### For Mac\n```\nbrew install opencv\n```\n### For Linux\n- pkg-config (also needed)\n```\nsudo apt-get install libopencv-dev pkg-config\n```\n### For Windows\n- VS was never tested.\n- As a work around you can install the linux subsystem for windows and Xmig for X11 windows\n   run the linux steps.\n\n## how to build?\n```\nmake\n```\n## how to run?\n- basic usage horizontal shrinking with fixed number of seams:\n```\n./exec \u003cimage\u003e.png|jpg \n```\n- vertical or horizontal shrinking with fixed number of seams:\n```\n./exec \u003cimage\u003e.png -h|-v\n```\n- vertical or horizontal shrinking with variable number of seams:\n```\n./exec \u003cimage\u003e.png -h|-v -n \u003cnumber\u003e\n```\n-Toggle shrink or grow usage.\n```\n./exec \u003cimage\u003e.png -h|-v -r|-g -n \u003cnumber\u003e\n```\n\n## Code Description\n![](https://raw.githubusercontent.com/farzonl/SeamCarving/master/documentation/codeDesc.png)\n\n## High Level Pipeline\n![](https://raw.githubusercontent.com/farzonl/SeamCarving/master/documentation/pipeline.png)\n\n## Grow Pipeline\n![](https://raw.githubusercontent.com/farzonl/SeamCarving/master/documentation/growingpipeline.png)\n\n## Shrink Pipeline\n![](https://raw.githubusercontent.com/farzonl/SeamCarving/master/documentation/shrinkingpipeline.png)\n\n## Class Presentation\n![presentation](https://raw.githubusercontent.com/farzonl/SeamCarving/master/documentation/presentation.pdf)\n\n## Final Report\n![report](https://raw.githubusercontent.com/farzonl/SeamCarving/master/documentation/report.pdf)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzonl%2Fseamcarving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarzonl%2Fseamcarving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzonl%2Fseamcarving/lists"}