| The pixels to be added or to be removed (seam) were chosen according to an energy function applied to the image. Afterwards a cost table was constructed on the 'energy image' in order to find the pixels with least energy. (It's desirable for areas with less content/detail to have low energies.) By dynammic programming, a seam was constructed from this cost table and added/removed from the image. The performance of the seam carving algorithm depended higly on the energy function being used. THe functions that seemed to work best were:
1. Gradient energy computation
2. Edge detection with sobel filter
|