Package isula.image.util
Class ImagePixel
java.lang.Object
isula.image.util.ImagePixel
-
Field Summary
-
Constructor Summary
ConstructorDescriptionImagePixel
(int coordinateForX, int coordinateForY, double[][] imageGraph) Creates a new Pixel of a specified image. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getNeighbourhood
(double[][] imageGraph) Return the surrounding neighbours of this pixel.int
int
int
hashCode()
void
setGreyScaleValue
(int greyScaleValue) void
setxCoordinate
(int coordinateForX) void
setyCoordinate
(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()
-