Package seamcarving.seamfinding
Interface Node
-
- All Known Implementing Classes:
AdjacencyListSeamFinder.PixelGraph.Pixel
,GenerativeSeamFinder.PixelGraph.Pixel
public interface Node
A node in a graph representation of a picture. Most nodes will represent real pixels in the picture, but some nodes can also represent concepts such as source nodes and sink nodes that don't represent real pixels.- See Also:
AdjacencyListSeamFinder
,GenerativeSeamFinder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
neighbors
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.- Parameters:
picture
- the input picture.f
- the input energy function.- Returns:
- the
List
of right-up, right-middle, and right-down neighbors (if they exist) for this node.
-
-