Package seamcarving.seamfinding
Class AdjacencyListSeamFinder.PixelGraph.Pixel
- java.lang.Object
-
- seamcarving.seamfinding.AdjacencyListSeamFinder.PixelGraph.Pixel
-
- All Implemented Interfaces:
Node
- Enclosing class:
- AdjacencyListSeamFinder.PixelGraph
public class AdjacencyListSeamFinder.PixelGraph.Pixel extends Object implements Node
A pixel in theAdjacencyListSeamFinder.PixelGraphrepresentation of thePicturewithEnergyFunction-weighted edges to neighbors.- See Also:
AdjacencyListSeamFinder.PixelGraph,Picture,EnergyFunction
-
-
Constructor Summary
Constructors Constructor Description Pixel(int x, int y)Constructs a pixel representing the (x, y) indices in the picture with no neighbors.
-
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()
-