public class Plane2D
extends java.lang.Object
Constructor and Description |
---|
Plane2D(omero.util.ReadOnlyByteArray data,
int sizeX,
int sizeY,
int bytesPerPixel,
omero.gateway.rnd.BytesConverter strategy)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getPixelValue(int x,
int y)
Returns the pixels value at the point specified by the x-coordinate
and y-coordinate.
|
double[][] |
getPixelValues()
Returns the pixels values
|
byte |
getRawValue(int offset)
Returns the raw data value at the given offset
|
public Plane2D(omero.util.ReadOnlyByteArray data, int sizeX, int sizeY, int bytesPerPixel, omero.gateway.rnd.BytesConverter strategy)
data
- The array of byte.sizeX
- The number of pixels along the x-axis.sizeY
- The number of pixels along the y-axis.bytesPerPixel
- The number of bytes per pixel.strategy
- Strategy to transform pixel.public double getPixelValue(int x, int y)
x
- The x-coordinate.y
- The y-coordinate.public double[][] getPixelValues()
public byte getRawValue(int offset)
offset
- The offset