Interface EnergyFunction

    • Method Detail

      • apply

        double apply​(Picture picture,
                     int x,
                     int y)
        Returns the energy of pixel (x, y) in the given picture.
        Parameters:
        picture - the input picture.
        x - the x-index into the picture.
        y - the y-index into the picture.
        Returns:
        the energy of pixel (x, y) in the given picture.