Package inra.ijpb.data
Class Neighborhood2DC8
java.lang.Object
inra.ijpb.data.Neighborhood2D
inra.ijpb.data.Neighborhood2DC8
public class Neighborhood2DC8 extends Neighborhood2D
Defines the eight-neighborhood for pixels in a 2D image.
The eight neighbors correspond to the four orthogonal neighbors plus the four
diagonal.
- See Also:
Neighborhood2DC4
-
Constructor Summary
Constructors Constructor Description Neighborhood2DC8()
-
Method Summary
Modifier and Type Method Description java.lang.Iterable<Cursor2D>
getNeighbors()
Methods inherited from class inra.ijpb.data.Neighborhood2D
getCursor, setCursor
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Neighborhood2DC8
public Neighborhood2DC8()
-
-
Method Details
-
getNeighbors
- Specified by:
getNeighbors
in classNeighborhood2D
- Returns:
- an Iterable over the neighbors of the pixel corresponding to the cursor referenced by this Neighborhood.
-