Class Pixel


  • public class Pixel
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int height  
      int posX  
      int posY  
      int width  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pixel​(int w, int h, int i, int j)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int[][] getNeighbouringPixelsFromImage​(java.awt.image.BufferedImage img, char colorComponent, int order)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • width

        public int width
      • height

        public int height
      • posX

        public int posX
      • posY

        public int posY
    • Constructor Detail

      • Pixel

        public Pixel​(int w,
                     int h,
                     int i,
                     int j)
    • Method Detail

      • getNeighbouringPixelsFromImage

        public int[][] getNeighbouringPixelsFromImage​(java.awt.image.BufferedImage img,
                                                      char colorComponent,
                                                      int order)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object