9

GitHub - AlexEidt/Karve: Real Time Seam Carving with object removal.

 1 year ago
source link: https://github.com/AlexEidt/Karve
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Karve

karve.png

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

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
Indicates carving speed.
Start/Stop removing/adding seams from the image. The speed of removal is determined by the slider. SPACE
Add back the most recently removed seam. RIGHT ARROW
Remove the next seam. LEFT ARROW
Take a snapshot of the current image. C

Acknowledgements


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK