Package seamcarving.seamfinding
Interface SeamFinder
-
- All Known Implementing Classes:
AdjacencyListSeamFinder
,DynamicProgrammingSeamFinder
,GenerativeSeamFinder
public interface SeamFinder
Finds a horizontal seam through thePicture
with the lowest sum ofEnergyFunction
costs. A horizontal seam is defined as a path of adjacent or diagonally-adjacent pixels from the left to right edges of an image.
-
-
Method Summary
All Methods Instance Methods Abstract 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
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.- Parameters:
picture
- thePicture
.f
- theEnergyFunction
.- Returns:
- a
List
of integers representing the vertical pixels to remove.
-
-