public class BfPixelsWrapper
extends java.lang.Object
| Constructor and Description |
|---|
BfPixelsWrapper(java.lang.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(java.lang.Integer x,
java.lang.Integer y,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t) |
void |
close() |
int |
getByteWidth() |
byte[] |
getCol(java.lang.Integer x,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
byte[] buffer) |
java.lang.Integer |
getColSize() |
byte[] |
getHypercube(java.util.List<java.lang.Integer> offset,
java.util.List<java.lang.Integer> size,
java.util.List<java.lang.Integer> step,
byte[] buffer) |
java.lang.Long |
getHypercubeSize(java.util.List<java.lang.Integer> offset,
java.util.List<java.lang.Integer> size,
java.util.List<java.lang.Integer> step) |
long |
getId() |
byte[] |
getMessageDigest() |
java.lang.String |
getPath() |
java.lang.String |
getPixelsType()
cgb - created from the methods below?
|
byte[] |
getPlane(java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
byte[] buffer) |
java.lang.Long |
getPlaneOffset(java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t) |
byte[] |
getPlaneRegion(java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
java.lang.Integer count,
java.lang.Integer offset,
byte[] buffer) |
java.lang.Long |
getPlaneSize() |
byte[] |
getRegion(java.lang.Integer size,
java.lang.Long offset,
byte[] buffer) |
byte[] |
getRow(java.lang.Integer y,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
byte[] buffer) |
java.lang.Long |
getRowOffset(java.lang.Integer y,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t) |
java.lang.Integer |
getRowSize() |
int |
getSizeC() |
int |
getSizeT() |
int |
getSizeX() |
int |
getSizeY() |
int |
getSizeZ() |
byte[] |
getStack(java.lang.Integer c,
java.lang.Integer t,
byte[] buffer) |
java.lang.Long |
getStackOffset(java.lang.Integer c,
java.lang.Integer t) |
java.lang.Long |
getStackSize() |
byte[] |
getTile(int z,
int c,
int t,
int x,
int y,
int w,
int h,
byte[] buffer) |
byte[] |
getTimepoint(java.lang.Integer t,
byte[] buffer) |
java.lang.Long |
getTimepointOffset(java.lang.Integer t) |
java.lang.Long |
getTimepointSize() |
java.lang.Long |
getTotalSize() |
boolean |
isFloat() |
boolean |
isLittleEndian() |
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(java.lang.String path,
IFormatReader reader)
throws java.io.IOException,
FormatException
java.io.IOExceptionFormatExceptionpublic byte[] getMessageDigest()
throws java.io.IOException
java.io.IOExceptionpublic void checkBounds(java.lang.Integer x,
java.lang.Integer y,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t)
throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic long getId()
public java.lang.String getPath()
public int getSizeC()
public int getSizeT()
public int getSizeX()
public int getSizeY()
public int getSizeZ()
public int getByteWidth()
public java.lang.Integer getRowSize()
public java.lang.Integer getColSize()
public java.lang.Long getPlaneSize()
public java.lang.Long getStackSize()
public java.lang.Long getTimepointSize()
public java.lang.Long getTotalSize()
public java.lang.Long getHypercubeSize(java.util.List<java.lang.Integer> offset,
java.util.List<java.lang.Integer> size,
java.util.List<java.lang.Integer> step)
throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsExceptionpublic java.lang.Long getRowOffset(java.lang.Integer y,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t)
throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsExceptionpublic java.lang.Long getPlaneOffset(java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t)
throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsExceptionpublic java.lang.Long getStackOffset(java.lang.Integer c,
java.lang.Integer t)
throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsExceptionpublic java.lang.Long getTimepointOffset(java.lang.Integer t)
throws DimensionsOutOfBoundsException
DimensionsOutOfBoundsExceptionpublic byte[] getCol(java.lang.Integer x,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
byte[] buffer)
throws java.io.IOException,
DimensionsOutOfBoundsException
java.io.IOExceptionDimensionsOutOfBoundsExceptionpublic byte[] getPlane(java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
byte[] buffer)
throws java.io.IOException,
DimensionsOutOfBoundsException
java.io.IOExceptionDimensionsOutOfBoundsExceptionpublic byte[] getPlaneRegion(java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
java.lang.Integer count,
java.lang.Integer offset,
byte[] buffer)
throws java.io.IOException,
DimensionsOutOfBoundsException
java.io.IOExceptionDimensionsOutOfBoundsExceptionpublic byte[] getRegion(java.lang.Integer size,
java.lang.Long offset,
byte[] buffer)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getRow(java.lang.Integer y,
java.lang.Integer z,
java.lang.Integer c,
java.lang.Integer t,
byte[] buffer)
throws java.io.IOException,
DimensionsOutOfBoundsException
java.io.IOExceptionDimensionsOutOfBoundsExceptionpublic byte[] getStack(java.lang.Integer c,
java.lang.Integer t,
byte[] buffer)
throws java.io.IOException,
DimensionsOutOfBoundsException
java.io.IOExceptionDimensionsOutOfBoundsExceptionpublic byte[] getTimepoint(java.lang.Integer t,
byte[] buffer)
throws java.io.IOException,
DimensionsOutOfBoundsException
java.io.IOExceptionDimensionsOutOfBoundsExceptionpublic byte[] getHypercube(java.util.List<java.lang.Integer> offset,
java.util.List<java.lang.Integer> size,
java.util.List<java.lang.Integer> step,
byte[] buffer)
throws java.io.IOException,
DimensionsOutOfBoundsException
java.io.IOExceptionDimensionsOutOfBoundsExceptionpublic byte[] getTile(int z,
int c,
int t,
int x,
int y,
int w,
int h,
byte[] buffer)
throws FormatException,
java.io.IOException
FormatExceptionjava.io.IOExceptionpublic java.lang.String getPixelsType()
public boolean isFloat()
public boolean isSigned()
public boolean isLittleEndian()
public byte[] swapIfRequired(byte[] bytes)
throws FormatException,
java.io.IOException
bytes - The byte array to check and modify if required.java.io.IOException - if there is an error read from the file.FormatException - if there is an error during metadata parsing.
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.