public interface WlzService
extends loci.common.services.Service
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file.
|
String |
getNoWlzMsg()
Gets the text string for when Woolz has not been found.
|
double |
getOrgX()
Gets column origin.
|
double |
getOrgY()
Gets line origin.
|
double |
getOrgZ()
Gets plane origin.
|
int |
getPixelType()
Gets the image pixel type.
|
int |
getSizeC()
Gets number of channels.
|
int |
getSizeT()
Gets number of time samples.
|
int |
getSizeX()
Gets width in pixels/voxels.
|
int |
getSizeY()
Gets height in pixels/voxels.
|
int |
getSizeZ()
Gets depth (number of x-y planes) in voxels.
|
int[] |
getSupPixelTypes()
Gets supported pixel types.
|
double |
getVoxSzX()
Gets voxel width.
|
double |
getVoxSzY()
Gets voxel height.
|
double |
getVoxSzZ()
Gets voxel depth.
|
String |
getWlzOrgLabelName()
Gets the text string used for the Woolz origin label.
|
boolean |
isRGB()
Gets boolean for whether image is colour or not.
|
void |
open(String file,
String rw)
Initializes the service for the given file path.
|
byte[] |
readBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Reads a rectangle of bytes in an x-y plane from the opened Woolz
object.
|
void |
saveBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Adds a rectangle of bytes in an x-y plane to the opened Woolz object.
|
void |
setupWrite(int orgX,
int orgY,
int orgZ,
int pixSzX,
int pixSzY,
int pixSzZ,
int pixSzC,
int pixSzT,
double voxSzX,
double voxSzY,
double voxSzZ,
int gType)
Sets up the service, which must have already been opened for writing.
|
void open(String file, String rw) throws IOException, FormatException
file
- File path with which to initialize the service.IOException
FormatException
String getNoWlzMsg()
String getWlzOrgLabelName()
int getSizeX()
int getSizeY()
int getSizeZ()
int getSizeC()
int getSizeT()
boolean isRGB()
int getPixelType()
double getVoxSzX()
double getVoxSzY()
double getVoxSzZ()
double getOrgX()
double getOrgY()
double getOrgZ()
int[] getSupPixelTypes()
void setupWrite(int orgX, int orgY, int orgZ, int pixSzX, int pixSzY, int pixSzZ, int pixSzC, int pixSzT, double voxSzX, double voxSzY, double voxSzZ, int gType) throws FormatException
orgX
- x origin.orgY
- y origin.orgZ
- z origin (set to 0 for 2D).pixSzX
- width.pixSzY
- height.pixSzZ
- depth (number of planes, set to 1 for 2D).pixSzC
- number of channels.pixSzT
- number of time samples.voxSzX
- pixel/voxel width.voxSzY
- pixel/voxel heigth.voxSzZ
- voxel deoth.gType
- image value type.FormatException
void close() throws IOException
IOException
byte[] readBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException
no
- plane coordinate (set to 0 for 2D).buf
- buffer for bytes.x
- rectangle first column.y
- rectangle first line.w
- rectangle width (in columns).h
- rectangle heigth (in lines).FormatException
IOException
void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException
no
- plane coordinate (set to 0 for 2D).buf
- buffer with bytes.x
- rectangle first column.y
- rectangle first line.w
- rectangle width (in columns).h
- rectangle heigth (in lines).FormatException
IOException
Copyright © 2017 Open Microscopy Environment