Package inra.ijpb.data
Class Neighborhood2D
java.lang.Object
inra.ijpb.data.Neighborhood2D
- Direct Known Subclasses:
Neighborhood2DC4
,Neighborhood2DC8
public abstract class Neighborhood2D
extends java.lang.Object
Defines a neighborhood around a pixel in a 2D image.
- See Also:
Neighborhood3D
-
Constructor Summary
Constructors Constructor Description Neighborhood2D()
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Neighborhood2D
public Neighborhood2D()
-
-
Method Details
-
getNeighbors
- Returns:
- an Iterable over the neighbors of the pixel corresponding to the cursor referenced by this Neighborhood.
-
setCursor
Sets the position of the Neighborhood2D.- Parameters:
cursor
- the new position of the Neighborhood2D
-
getCursor
- Returns:
- the position of the Neighborhood2D.
-