public class Plane2D extends Object
| Constructor and Description |
|---|
Plane2D(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.
|
byte |
getRawValue(int offset)
Returns the raw data value at the given offset
|
public Plane2D(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 byte getRawValue(int offset)
offset - The offset
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.