|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.io.nio.PixelData
ome.io.nio.ReorderedPixelData
public class ReorderedPixelData
Represents a block of pixel data that needs to be re-ordered in accordance
with a DeltaVision file. NOTE: This buffer does not re-order the
actual backing buffer so read-only
buffers may be used and
potential callers of getData()
should be aware of this restriction.
PixelBuffer
Field Summary |
---|
Fields inherited from class ome.io.nio.PixelData |
---|
BIT, BYTE, bytesPerPixel, data, DOUBLE, FLOAT, INT, isFloat, isSigned, javaType, LONG, maximum, minimum, pixelsType, SHORT |
Constructor Summary | |
---|---|
ReorderedPixelData(ome.model.enums.PixelsType pixelsType,
ByteBuffer data,
int rowSize)
Default constructor. |
Method Summary | |
---|---|
ByteBuffer |
getData()
Returns the backing buffer for the pixel data. |
ByteOrder |
getOrder()
Returns the byte order of the backing buffer. |
double |
getPixelValueDirect(int offset)
Returns the pixel intensity value of the pixel at a given offset within the backing buffer. |
static int |
getReorderedPixelOffset(int size,
int offset,
int rowSize)
Returns the re-ordered pixel offset. |
void |
setOrder(ByteOrder order)
Set the byte order of the backing buffer. |
Methods inherited from class ome.io.nio.PixelData |
---|
bytesPerPixel, getMaximum, getMinimum, getPixelValue, in, isFloat, isSigned, javaType, setPixelValue, setPixelValueDirect, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReorderedPixelData(ome.model.enums.PixelsType pixelsType, ByteBuffer data, int rowSize)
pixelsType
- The pixels type.data
- The raw pixel data.rowSize
- The size of each pixels row in bytes.Method Detail |
---|
public static int getReorderedPixelOffset(int size, int offset, int rowSize)
size
- The number of rows in the array.offset
- The offset within the array of rows assuming a top left
origin.rowSize
- The size of each pixels row in bytes.
public double getPixelValueDirect(int offset)
getPixelValueDirect
in class PixelData
offset
- The absolute offset within the backing buffer.
public ByteBuffer getData()
getData
in class PixelData
public ByteOrder getOrder()
getOrder
in class PixelData
public void setOrder(ByteOrder order)
setOrder
in class PixelData
order
- The byte order.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.