zavolokas / SeamCarving

Image processing method that allows to remove an object from a photo.
MIT License
121 stars 9 forks source link

A few questions #6

Open WindowsNT opened 3 years ago

WindowsNT commented 3 years ago

Seems nice, but:

  1. Isn't sean carving for resizing only?
  2. Your example, the end result is resized
  3. What's the format of the mask image?
zavolokas commented 3 years ago

@WindowsNT

  1. Seam carving removes pixels that have least importance for perception. What you can do is to mark areas that you think not important and run the algorithm.
  2. You are right. It is resized. However it is possible to resize it back to the original size.
  3. It is any format that supports alpha channel. In the example I used a PNG file for the mask.