public static class ImagePanel.PixelInfo
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PixelInfo(int x,
int y,
long value,
double relativeValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getRelativeValue()
Gets relative intensity of the pixel, where 0 is black and 1 is white.
|
long |
getValue()
Gets absolute value (intensity) of the pixel.
|
int |
getX()
Returns (zero based) x-coordinate of pixel, counted from the left.
|
int |
getY()
Returns (zero based) y-coordinate of pixel, counted from the top.
|
public PixelInfo(int x, int y, long value, double relativeValue)
x
- x-coordinate of pixel.y
- y-coordinate of pixel.value
- absolute value of pixel.relativeValue
- relative value of pixel.public int getX()
public int getY()
public long getValue()
public double getRelativeValue()