Package seamfinding
Class AdjacencyListSeamFinder.PixelGraph.Pixel
- java.lang.Object
-
- 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.PixelGraph
representation of thePicture
withEnergyFunction
-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 boolean
equals(Object o)
int
hashCode()
List<Edge<Node>>
neighbors(Picture picture, EnergyFunction f)
Returns theList
of right-up, right-middle, and right-down neighbors (if they exist) for this node.String
toString()
-