{"id":15558794,"url":"https://github.com/andymina/seam-carving","last_synced_at":"2026-01-07T06:50:54.972Z","repository":{"id":60608697,"uuid":"541234324","full_name":"andymina/seam-carving","owner":"andymina","description":"A native C++ implementation of content-aware image resizing (seam carving).","archived":false,"fork":false,"pushed_at":"2024-01-15T18:08:58.000Z","size":13551,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T13:46:51.752Z","etag":null,"topics":["cmake","computer-vision","content-aware-resize","cpp","python3","seam-carving","seam-carving-algorithm"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andymina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-09-25T16:24:46.000Z","updated_at":"2022-10-02T02:53:57.000Z","dependencies_parsed_at":"2024-01-15T19:59:01.203Z","dependency_job_id":"e73322ee-7835-4d50-acd9-b1d3979017ee","html_url":"https://github.com/andymina/seam-carving","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andymina%2Fseam-carving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andymina%2Fseam-carving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andymina%2Fseam-carving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andymina%2Fseam-carving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andymina","download_url":"https://codeload.github.com/andymina/seam-carving/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246135767,"owners_count":20729058,"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":["cmake","computer-vision","content-aware-resize","cpp","python3","seam-carving","seam-carving-algorithm"],"created_at":"2024-10-02T15:40:41.831Z","updated_at":"2026-01-07T06:50:54.924Z","avatar_url":"https://github.com/andymina.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seam Carving\n\nA native C++ implementation of seam carving as described by Avidan et al. in [Seam carving for\ncontent-aware image resizing](https://doi.org/10.1145/1275808.1276390). Learn more about seam carving from [this YouTube video](https://www.youtube.com/embed/6NcIJXTlugc).\n\n![Seam Carving Demo GIF](docs/assets/seam-carving-demo.gif)\n\n*Credit to [George Wang](https://inst.eecs.berkeley.edu/~cs194-26/sp20/upload/files/projFinalAssigned/cs194-26-aea/) for the GIF*\n\n## Getting Started\n\nThe seam carving library can be built using CMake. The available targets are:\n\n- `seam_carving` - builds the dylib\n- `demo` - runs the demo at `./demo.cpp`\n- `carver_unit/energy_unit` - runs the unit tests at `tests/unit/[carver/energy].test.cpp` respectively\n\n### Running the demo\n\n1. Configure the CMake project. The code sample below uses Ninja as the generator. There are presets in `CMakePresets.json`\navailable to use. \n2. Build the `demo` target.\n3. Run the demo target with a path to an image (sample images are provided in `samples/`), and the target size\n\n```\n# step 1 - from the root folder of the repo\ncmake -B {PATH_TO_BUILD_DIR} -S {PATH_TO_REPO_ROOT} -G Ninja --preset default\n\n# step 2\ncmake --build {PATH_TO_BUILD_DIR} --target demo\n\n# step 3\n./demo {PATH_TO_IMG} {TARGET COLS} {TARGET ROWS}\n```\n\n## Seam Carving Shell (SCS)\n\nThe Seam Carving Shell (SCS) is undergoing major reconstruction and is not supported in v2.0.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandymina%2Fseam-carving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandymina%2Fseam-carving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandymina%2Fseam-carving/lists"}