Package seamcarving.seamfinding
Class DynamicProgrammingSeamFinder
- java.lang.Object
-
- seamcarving.seamfinding.DynamicProgrammingSeamFinder
-
- All Implemented Interfaces:
SeamFinder
public class DynamicProgrammingSeamFinder extends Object implements SeamFinder
Dynamic programming implementation of theSeamFinder
interface.- See Also:
SeamFinder
,SeamCarver
-
-
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.
-
-
-
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.
-
-