|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RawPixelsStore
Binary data provider. Initialized with the id of a
Pixels
instance, this interface can provide various
slices, stacks, regions of the 5-dimensional (X-Y planes with multiple
Z-sections and Channels over Time). The byte array returned by the getter
methods and passed to the setter methods can and will be interpreted
according to results of getByteWidth()
, isFloat()
, and
isSigned()
.
Method Summary | |
---|---|
byte[] |
calculateMessageDigest()
|
int |
getByteWidth()
|
byte[] |
getCol(int x,
int z,
int c,
int t)
|
byte[] |
getPlane(int z,
int c,
int t)
|
long |
getPlaneOffset(int z,
int c,
int t)
|
byte[] |
getPlaneRegion(int z,
int c,
int t,
int count,
int offset)
|
int |
getPlaneSize()
delegates to PixelBuffer |
byte[] |
getRegion(int size,
long offset)
|
byte[] |
getRow(int y,
int z,
int c,
int t)
|
long |
getRowOffset(int y,
int z,
int c,
int t)
|
int |
getRowSize()
|
byte[] |
getStack(int c,
int t)
|
long |
getStackOffset(int c,
int t)
|
int |
getStackSize()
|
byte[] |
getTimepoint(int t)
|
long |
getTimepointOffset(int t)
|
int |
getTimepointSize()
|
int |
getTotalSize()
|
boolean |
isFloat()
|
boolean |
isSigned()
|
void |
prepare(Set<Long> pixelsIds)
Prepares the stateful service with a cache of loaded Pixels objects. |
void |
setPixelsId(long pixelsId,
boolean bypassOriginalFile)
Initializes the stateful service for a given Pixels set. |
void |
setPlane(byte[] buffer,
int z,
int c,
int t)
|
void |
setRegion(int size,
long offset,
byte[] buffer)
|
void |
setRow(byte[] buffer,
int y,
int z,
int c,
int t)
|
void |
setStack(byte[] buffer,
int z,
int c,
int t)
|
void |
setTimepoint(byte[] buffer,
int t)
|
Methods inherited from interface ome.api.StatefulServiceInterface |
---|
activate, close, getCurrentEventContext, passivate |
Method Detail |
---|
void setPixelsId(long pixelsId, boolean bypassOriginalFile)
pixelsId
- Pixels set identifier.bypassOriginalFile
- Whether or not to bypass checking for an
original file to back the pixel buffer used by this service. If requests
are predominantly write-only
or involve the population of
a brand new pixel buffer using true
here is a safe
optimization otherwise false
is expected.void prepare(Set<Long> pixelsIds)
pixelsIds
- Pixels IDs to cache.int getPlaneSize()
PixelBuffer
pixelsId
-
PixelBuffer.getPlaneSize()
int getRowSize()
int getStackSize()
int getTimepointSize()
int getTotalSize()
long getRowOffset(int y, int z, int c, int t)
long getPlaneOffset(int z, int c, int t)
long getStackOffset(int c, int t)
long getTimepointOffset(int t)
byte[] getRegion(int size, long offset)
byte[] getRow(int y, int z, int c, int t)
byte[] getCol(int x, int z, int c, int t)
byte[] getPlaneRegion(int z, int c, int t, int count, int offset)
byte[] getPlane(int z, int c, int t)
byte[] getStack(int c, int t)
byte[] getTimepoint(int t)
void setRegion(int size, long offset, byte[] buffer)
void setRow(byte[] buffer, int y, int z, int c, int t)
void setPlane(byte[] buffer, int z, int c, int t)
void setStack(byte[] buffer, int z, int c, int t)
void setTimepoint(byte[] buffer, int t)
int getByteWidth()
boolean isSigned()
boolean isFloat()
byte[] calculateMessageDigest()
|
||||||||||
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.