public class ReorderedPixelData extends PixelData
read-only
buffers may be used and
potential callers of getData()
should be aware of this restriction.PixelData
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.
|
bytesPerPixel, dispose, getBitDepth, getMaximum, getMinimum, getPixelValue, in, isFloat, isSigned, javaType, setPixelValue, setPixelValueDirect, size
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 PixelData
offset
- The absolute offset within the backing buffer.public ByteBuffer getData()
public ByteOrder getOrder()
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.