public interface RawPixelsStore extends StatefulServiceInterface
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()
.Modifier and Type | Method and Description |
---|---|
byte[] |
calculateMessageDigest() |
int |
getByteWidth() |
byte[] |
getCol(int x,
int z,
int c,
int t) |
byte[] |
getHypercube(List<Integer> offset,
List<Integer> size,
List<Integer> step) |
long |
getPixelsId()
Returns the current Pixels set identifier.
|
String |
getPixelsPath()
Returns the current Pixels path.
|
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) |
long |
getPlaneSize()
Returns the plane size
|
byte[] |
getRegion(int size,
long offset) |
Object |
getResolutionDescriptions() |
int |
getResolutionLevel() |
int |
getResolutionLevels() |
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) |
long |
getStackSize() |
byte[] |
getTile(int z,
int c,
int t,
int x,
int y,
int w,
int h) |
int[] |
getTileSize() |
byte[] |
getTimepoint(int t) |
long |
getTimepointOffset(int t) |
long |
getTimepointSize() |
long |
getTotalSize() |
boolean |
isFloat() |
boolean |
isSigned() |
void |
prepare(Set<Long> pixelsIds)
Prepares the stateful service with a cache of loaded Pixels objects.
|
boolean |
requiresPixelsPyramid() |
Pixels |
save() |
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 |
setResolutionLevel(int resolutionLevel) |
void |
setRow(byte[] buffer,
int y,
int z,
int c,
int t) |
void |
setStack(byte[] buffer,
int z,
int c,
int t) |
void |
setTile(byte[] buffer,
int z,
int c,
int t,
int x,
int y,
int w,
int h) |
void |
setTimepoint(byte[] buffer,
int t) |
activate, close, getCurrentEventContext, passivate
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.String getPixelsPath()
long getPixelsId()
void prepare(Set<Long> pixelsIds)
pixelsIds
- Pixels IDs to cache.long getPlaneSize()
int getRowSize()
long getStackSize()
long getTimepointSize()
long 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[] getTile(int z, int c, int t, int x, int y, int w, int h)
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 setTile(byte[] buffer, int z, int c, int t, int x, int y, int w, int h)
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()
Pixels save()
boolean requiresPixelsPyramid()
Object getResolutionDescriptions()
int getResolutionLevels()
int getResolutionLevel()
void setResolutionLevel(int resolutionLevel)
int[] getTileSize()
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.