Class Neighborhood2DC4

java.lang.Object
inra.ijpb.data.Neighborhood2D
inra.ijpb.data.Neighborhood2DC4

public class Neighborhood2DC4
extends Neighborhood2D
Defines the four-neighborhood for pixels in a 2D image. The four neighbors correspond to the orthogonal directions.
See Also:
Neighborhood2DC8
  • Constructor Summary

    Constructors
    Constructor Description
    Neighborhood2DC4()  
  • 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

    • Neighborhood2DC4

      public Neighborhood2DC4()
  • Method Details

    • getNeighbors

      public java.lang.Iterable<Cursor2D> getNeighbors()
      Specified by:
      getNeighbors in class Neighborhood2D
      Returns:
      an Iterable over the neighbors of the pixel corresponding to the cursor referenced by this Neighborhood.