public class ReorderedPixelData
extends ome.util.PixelData
read-only buffers may be used and
potential callers of getData() should be aware of this restriction.PixelBuffer| Constructor and Description |
|---|
ReorderedPixelData(String pixelsType,
ByteBuffer data,
int rowSize)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ReorderedPixelData(String pixelsType, ByteBuffer data, int rowSize)
pixelsType - The OME pixels type.data - The raw pixel data.rowSize - The size of each pixels row in bytes.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 ome.util.PixelDataoffset - The absolute offset within the backing buffer.public ByteBuffer getData()
getData in class ome.util.PixelDatapublic ByteOrder getOrder()
getOrder in class ome.util.PixelDatapublic void setOrder(ByteOrder order)
setOrder in class ome.util.PixelDataorder - The byte order.
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.