Package seamcarving.seamfinding
Class GenerativeSeamFinder.PixelGraph.Pixel
- java.lang.Object
-
- seamcarving.seamfinding.GenerativeSeamFinder.PixelGraph.Pixel
-
- All Implemented Interfaces:
Node
- Enclosing class:
- GenerativeSeamFinder.PixelGraph
public class GenerativeSeamFinder.PixelGraph.Pixel extends Object implements Node
A pixel in theGenerativeSeamFinder.PixelGraphrepresentation of thePicturewithEnergyFunction-weighted edges to neighbors.- See Also:
GenerativeSeamFinder.PixelGraph,Picture,EnergyFunction
-
-
Constructor Summary
Constructors Constructor Description Pixel(int x, int y)Constructs a pixel representing the (x, y) indices in the picture.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()List<Edge<Node>>neighbors(Picture picture, EnergyFunction f)Returns theListof right-up, right-middle, and right-down neighbors (if they exist) for this node.StringtoString()
-