Package seamfinding

Interface SeamFinder

    • Method Detail

      • findHorizontal

        List<Integer> findHorizontal​(Picture picture,
                                     EnergyFunction f)
        Returns a minimum-energy horizontal seam in the current image as a List of integers representing the vertical pixel index to remove from each column in the width of the horizontal seam.
        Parameters:
        picture - the Picture.
        f - the EnergyFunction.
        Returns:
        a List of integers representing the vertical pixels to remove.
      • findVertical

        default List<Integer> findVertical​(Picture picture,
                                           EnergyFunction f)
        Returns a minimum-energy vertical seam in the current image as a List of integers representing the horizontal pixel index to remove from each row in the height of the vertical seam.
        Parameters:
        picture - the Picture.
        f - the EnergyFunction.
        Returns:
        a List of integers representing the horizontal pixels to remove.