public interface WlzService
extends loci.common.services.Service
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file.
|
java.lang.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.
|
java.lang.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(java.lang.String file,
java.lang.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(java.lang.String file, java.lang.String rw) throws java.io.IOException, FormatException
file
- File path with which to initialize the service.java.io.IOException
FormatException
java.lang.String getNoWlzMsg()
java.lang.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 java.io.IOException
java.io.IOException
byte[] readBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, java.io.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
java.io.IOException
void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, java.io.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
java.io.IOException
Copyright © 2020 Open Microscopy Environment