Package seamcarving.energy
Interface EnergyFunction
-
- All Known Implementing Classes:
DualGradientEnergyFunction
public interface EnergyFunction
Determines the energy of a given (x, y) pixel index in aPicture
.- See Also:
DualGradientEnergyFunction
,Picture
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
apply(Picture picture, int x, int y)
Returns the energy of pixel (x, y) in the given picture.
-
-
-
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.
-
-