Giter Site home page Giter Site logo

alexeidt / karve Goto Github PK

View Code? Open in Web Editor NEW
41.0 3.0 3.0 81.62 MB

Real Time Seam Carving with object removal.

Home Page: https://youtu.be/-oTGqBRkdy0

License: MIT License

Java 100.00%
seam-carving forward-energy backward-energy object-removal real-time gui-application

karve's Introduction

Karve

Karve is a simple Seam Carver. Seam Carving is basically content aware image resizing. The algorithm preserves the objects in the image while less important background space is removed by removing "seams" from the image.

Features

  • Vertical and Horizontal Seam Carving
  • "Animate" the Seam Carving Process at varying speeds
  • Fast carving for moderately sized images
  • Drag and Drop Images into the application
  • Removed Seams can be added back onto the image
  • Object removal and preservation via highlighting
  • Togglable Seam Highlighting
  • Togglable GUI updating for faster carving
  • Backward and Forward Energy Seam Carving
  • Snapshot current image
  • Record Seam Carving animation by saving carved image snapshots
  • Uses all CPU Cores for faster carving
  • No dependencies!

To start, simply drag and drop the image into the application.


Karve Seam Carver Demo


If Karve is carving out areas of the image that you want to keep, you can also mark the image with low and high priority regions.

You can also click on the image itself to mark areas of lower importance. Any areas you left click on will be marked in red and seams will be removed there first.

Karve Seam Carver Demo Low Priority


Similarly, any areas you right click on will be marked in green and the algorithm will avoid those areas of the image.

Karve Seam Carver Demo


Button Descriptions

Checkboxes

Button Description Key
Show Seams If selected, shows the seams being added/removed from the image. S
Horizontal If selected, carves out horizontal seams instead of vertical ones. H
Recording If selected, saves each carved frame as an image in the Snapshots directory. R
Update If selected, updates the image on the UI. De-select this option for more efficient carving. U

Buttons/Icons

Button Description Key
Speedometer Icon Indicates carving speed.
Start and Stop Icons Start/Stop removing/adding seams from the image. The speed of removal is determined by the slider. SPACE
Add Icon Add back the most recently removed seam. RIGHT ARROW
Remove Icon Remove the next seam. LEFT ARROW
Snapshot Icon Take a snapshot of the current image. C

Acknowledgements

karve's People

Contributors

alexeidt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.