|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomeis.providers.re.data.Plane2D
public class Plane2D
Field Summary | |
---|---|
protected int |
bytesPerPixel
How many bytes make up a pixel value. |
protected int |
javaType
The Java type that we're using for pixel value retrieval |
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 Summary | |
---|---|
Plane2D(PlaneDef pDef,
ome.model.core.Pixels pixels,
ome.util.PixelData data)
Constructor that sub-classes must call. |
Method Summary | |
---|---|
ome.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PlaneDef planeDef
protected int bytesPerPixel
protected int sizeX
protected int sizeY
protected int javaType
protected boolean signed
protected int slice
Constructor Detail |
---|
public Plane2D(PlaneDef pDef, ome.model.core.Pixels pixels, ome.util.PixelData data)
pDef
- The type of plane.pixels
- The pixels set which the Plane2D references.data
- The raw pixels.Method Detail |
---|
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 ome.util.PixelData getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.