Package seamcarving
Class DynamicProgrammingSeamFinder
- java.lang.Object
-
- seamcarving.DynamicProgrammingSeamFinder
-
- All Implemented Interfaces:
SeamFinder
public class DynamicProgrammingSeamFinder extends Object implements SeamFinder
Dynamic programming implementation of theSeamFinderinterface.- 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>findSeam(Picture picture, EnergyFunction f)Returns a minimum-energy horizontal seam in the current image as aListof integers representing the vertical pixel index to remove from each column in the width of the horizontal seam.
-
-
-
Method Detail
-
findSeam
public List<Integer> findSeam(Picture picture, EnergyFunction f)
Description copied from interface:SeamFinderReturns a minimum-energy horizontal seam in the current image as aListof integers representing the vertical pixel index to remove from each column in the width of the horizontal seam.- Specified by:
findSeamin interfaceSeamFinder- Parameters:
picture- thePicture.f- theEnergyFunction.- Returns:
- a
Listof integers representing the vertical pixels to remove.
-
-