Class ImagePixel

java.lang.Object
isula.image.util.ImagePixel

public class ImagePixel extends Object
  • Field Details

  • Constructor Details

    • ImagePixel

      public ImagePixel(int coordinateForX, int coordinateForY, double[][] imageGraph)
      Creates a new Pixel of a specified image.
      Parameters:
      coordinateForX - X coordinate.
      coordinateForY - Y coordinate.
      imageGraph - Graph representation of the image.
  • Method Details

    • getxCoordinate

      public int getxCoordinate()
    • setxCoordinate

      public void setxCoordinate(int coordinateForX)
    • getyCoordinate

      public int getyCoordinate()
    • setyCoordinate

      public void setyCoordinate(int coordinateForY)
    • getGreyScaleValue

      public int getGreyScaleValue()
    • setGreyScaleValue

      public void setGreyScaleValue(int greyScaleValue)
    • getNeighbourhood

      public List<ImagePixel> getNeighbourhood(double[][] imageGraph)
      Return the surrounding neighbours of this pixel.
      Parameters:
      imageGraph - Graph representation of the image.
      Returns:
      List os surrounfing pixels.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object