public class BfPixelsWrapper extends Object
Constructor and Description |
---|
BfPixelsWrapper(String path,
IFormatReader reader)
We may want a constructor that takes the id of an imported file
or that takes a File object?
|
Modifier and Type | Method and Description |
---|---|
void |
checkBounds(Integer x,
Integer y,
Integer z,
Integer c,
Integer t) |
void |
close() |
int |
getByteWidth() |
byte[] |
getCol(Integer x,
Integer z,
Integer c,
Integer t,
byte[] buffer) |
Integer |
getColSize() |
byte[] |
getHypercube(List<Integer> offset,
List<Integer> size,
List<Integer> step,
byte[] buffer) |
Long |
getHypercubeSize(List<Integer> offset,
List<Integer> size,
List<Integer> step) |
long |
getId() |
byte[] |
getMessageDigest() |
String |
getPath() |
String |
getPixelsType()
cgb - created from the methods below?
|
byte[] |
getPlane(Integer z,
Integer c,
Integer t,
byte[] buffer) |
Long |
getPlaneOffset(Integer z,
Integer c,
Integer t) |
byte[] |
getPlaneRegion(Integer z,
Integer c,
Integer t,
Integer count,
Integer offset,
byte[] buffer) |
Long |
getPlaneSize() |
byte[] |
getRegion(Integer size,
Long offset,
byte[] buffer) |
byte[] |
getRow(Integer y,
Integer z,
Integer c,
Integer t,
byte[] buffer) |
Long |
getRowOffset(Integer y,
Integer z,
Integer c,
Integer t) |
Integer |
getRowSize() |
int |
getSizeC() |
int |
getSizeT() |
int |
getSizeX() |
int |
getSizeY() |
int |
getSizeZ() |
byte[] |
getStack(Integer c,
Integer t,
byte[] buffer) |
Long |
getStackOffset(Integer c,
Integer t) |
Long |
getStackSize() |
byte[] |
getTile(int z,
int c,
int t,
int x,
int y,
int w,
int h,
byte[] buffer) |
byte[] |
getTimepoint(Integer t,
byte[] buffer) |
Long |
getTimepointOffset(Integer t) |
Long |
getTimepointSize() |
Long |
getTotalSize() |
boolean |
isFloat() |
boolean |
isSigned() |
byte[] |
swapIfRequired(byte[] bytes)
cgb - stolen from ImportLibrary - slightly modified
Examines a byte array to see if it needs to be byte swapped and modifies
the byte array directly.
|
public BfPixelsWrapper(String path, IFormatReader reader) throws IOException, FormatException
IOException
FormatException
public byte[] getMessageDigest() throws IOException
IOException
public void checkBounds(Integer x, Integer y, Integer z, Integer c, Integer t) throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsException
public void close() throws IOException
IOException
public long getId()
public String getPath()
public int getSizeC()
public int getSizeT()
public int getSizeX()
public int getSizeY()
public int getSizeZ()
public int getByteWidth()
public Integer getRowSize()
public Integer getColSize()
public Long getPlaneSize()
public Long getStackSize()
public Long getTimepointSize()
public Long getTotalSize()
public Long getHypercubeSize(List<Integer> offset, List<Integer> size, List<Integer> step) throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsException
public Long getRowOffset(Integer y, Integer z, Integer c, Integer t) throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsException
public Long getPlaneOffset(Integer z, Integer c, Integer t) throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsException
public Long getStackOffset(Integer c, Integer t) throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsException
public Long getTimepointOffset(Integer t) throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsException
public byte[] getCol(Integer x, Integer z, Integer c, Integer t, byte[] buffer) throws IOException, DimensionsOutOfBoundsException
public byte[] getPlane(Integer z, Integer c, Integer t, byte[] buffer) throws IOException, DimensionsOutOfBoundsException
public byte[] getPlaneRegion(Integer z, Integer c, Integer t, Integer count, Integer offset, byte[] buffer) throws IOException, DimensionsOutOfBoundsException
public byte[] getRegion(Integer size, Long offset, byte[] buffer) throws IOException
IOException
public byte[] getRow(Integer y, Integer z, Integer c, Integer t, byte[] buffer) throws IOException, DimensionsOutOfBoundsException
public byte[] getStack(Integer c, Integer t, byte[] buffer) throws IOException, DimensionsOutOfBoundsException
public byte[] getTimepoint(Integer t, byte[] buffer) throws IOException, DimensionsOutOfBoundsException
public byte[] getHypercube(List<Integer> offset, List<Integer> size, List<Integer> step, byte[] buffer) throws IOException, DimensionsOutOfBoundsException
public byte[] getTile(int z, int c, int t, int x, int y, int w, int h, byte[] buffer) throws FormatException, IOException
FormatException
IOException
public String getPixelsType()
public boolean isFloat()
public boolean isSigned()
public byte[] swapIfRequired(byte[] bytes) throws FormatException, IOException
bytes
- The byte array to check and modify if required.IOException
- if there is an error read from the file.FormatException
- if there is an error during metadata parsing.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.