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

    Modifier and Type Method Description
    Cursor2D getCursor()  
    abstract java.lang.Iterable<Cursor2D> getNeighbors()  
    void setCursor​(Cursor2D cursor)
    Sets the position of the Neighborhood2D.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Neighborhood2D

      public Neighborhood2D()
  • Method Details

    • getNeighbors

      public abstract java.lang.Iterable<Cursor2D> getNeighbors()
      Returns:
      an Iterable over the neighbors of the pixel corresponding to the cursor referenced by this Neighborhood.
    • setCursor

      public void setCursor​(Cursor2D cursor)
      Sets the position of the Neighborhood2D.
      Parameters:
      cursor - the new position of the Neighborhood2D
    • getCursor

      public Cursor2D getCursor()
      Returns:
      the position of the Neighborhood2D.