Package seamfinding
Class GenerativeSeamFinder.PixelGraph.Pixel
- java.lang.Object
-
- 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.PixelGraph
representation of thePicture
withEnergyFunction
-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 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()
-