public class OutputManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FILEBUFFERSIZE |
static boolean |
gzipOut
Write GZIP output.
|
static java.lang.String |
outputDataType
The type of the output data
|
static java.lang.String |
outputFile
Name of the output file.
|
Constructor and Description |
---|
OutputManager()
Sets up an output stream for an output file if the output file
has been specified, otherwise stays with the default output
stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes and tidies up.
|
double[][][][] |
getOutputArray()
Returns the output array.
|
java.io.DataOutputStream |
getOutputStream()
Returns the output stream.
|
void |
output(double[] data)
Outputs the data for one voxel to the selected output stream.
|
void |
setOutputArray(int x,
int y,
int z)
Specifies that the output should be stored for collection
by an external process, such as Matlab.
|
public static final int FILEBUFFERSIZE
public static java.lang.String outputDataType
public static java.lang.String outputFile
public static boolean gzipOut
public OutputManager()
public void output(double[] data)
data
- The array of data values to output.f
- The file output stream. If this is null, the output goes to
standard out.outputDataType
- The type of the data output.public java.io.DataOutputStream getOutputStream()
public void close()
public void setOutputArray(int x, int y, int z)
x
- X-size of output arrayy
- Y-size of output arrayz
- Z-size of output arraypublic double[][][][] getOutputArray()