Package isula.image.util
Class ImagePixel
java.lang.Object
isula.image.util.ImagePixel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImagePixel(int coordinateForX, int coordinateForY, double[][] imageGraph) Creates a new Pixel of a specified image. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetNeighbourhood(double[][] imageGraph) Return the surrounding neighbours of this pixel.intintinthashCode()voidsetGreyScaleValue(int greyScaleValue) voidsetxCoordinate(int coordinateForX) voidsetyCoordinate(int coordinateForY) toString()
-
Field Details
-
INITIAL_VALUE
public static final int INITIAL_VALUE- See Also:
-
-
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
Return the surrounding neighbours of this pixel.- Parameters:
imageGraph- Graph representation of the image.- Returns:
- List os surrounfing pixels.
-
toString
-
equals
-
hashCode
public int hashCode()
-