Package seamfinding
Class DynamicProgrammingSeamFinder
- java.lang.Object
-
- seamfinding.DynamicProgrammingSeamFinder
-
- All Implemented Interfaces:
SeamFinder
public class DynamicProgrammingSeamFinder extends Object implements SeamFinder
Dynamic programming implementation of theSeamFinder
interface.- See Also:
SeamFinder
-
-
Constructor Summary
Constructors Constructor Description DynamicProgrammingSeamFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>
findHorizontal(Picture picture, EnergyFunction f)
Returns a minimum-energy horizontal seam in the current image as aList
of integers representing the vertical pixel index to remove from each column in the width of the horizontal seam.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface seamfinding.SeamFinder
findVertical
-
-
-
-
Method Detail
-
findHorizontal
public List<Integer> findHorizontal(Picture picture, EnergyFunction f)
Description copied from interface:SeamFinder
Returns a minimum-energy horizontal seam in the current image as aList
of integers representing the vertical pixel index to remove from each column in the width of the horizontal seam.- Specified by:
findHorizontal
in interfaceSeamFinder
- Parameters:
picture
- thePicture
.f
- theEnergyFunction
.- Returns:
- a
List
of integers representing the vertical pixels to remove.
-
-