public class Plane2D extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bytesPerPixel
How many bytes make up a pixel value.
|
protected PlaneDef |
planeDef
The type of plane.
|
protected boolean |
signed
The sign of the type
|
protected int |
sizeX
Number of pixels along the X-axis.
|
protected int |
sizeY
Number of pixels along the Y-axis.
|
protected int |
slice
The slice we're working with
|
Constructor and Description |
---|
Plane2D(PlaneDef pDef,
Pixels pixels,
PixelData data)
Constructor that sub-classes must call.
|
Modifier and Type | Method and Description |
---|---|
PixelData |
getData()
Returns the pixel data that is used to back this Plane.
|
double |
getPixelValue(int offset)
Returns the pixel intensity value of the pixel at a given offset within
the backing buffer.
|
double |
getPixelValue(int x1,
int x2)
Returns the pixel intensity value of the pixel at
(x1, x2) . |
boolean |
isXYPlanar()
Returns
true if the plane is an XY-plane ,
false otherwise. |
protected PlaneDef planeDef
protected int bytesPerPixel
protected int sizeX
protected int sizeY
protected boolean signed
protected int slice
public double getPixelValue(int x1, int x2)
(x1, x2)
.
The coordinates are relative to the XY, ZY or XZ
reference frame, depending on the plane type. (So x1
is
x
and x2
is y
if the plane
type is XY, etc.)x1
- The first coordinate.x2
- The second coordinate.public double getPixelValue(int offset)
bytesPerPixel
.offset
- The relative offset (taking into account the number of
bytes per pixel) within the backing buffer.public boolean isXYPlanar()
true
if the plane is an XY-plane
,
false
otherwise.public PixelData getData()
Version: 5.2.4-ice35-b23
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.