Package seamcarving

Class DynamicProgrammingSeamFinder

    • Constructor Detail

      • DynamicProgrammingSeamFinder

        public DynamicProgrammingSeamFinder()
    • Method Detail

      • findSeam

        public List<Integer> findSeam​(Picture picture,
                                      EnergyFunction f)
        Description copied from interface: SeamFinder
        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.
        Specified by:
        findSeam in interface SeamFinder
        Parameters:
        picture - the Picture.
        f - the EnergyFunction.
        Returns:
        a List of integers representing the vertical pixels to remove.