public class WriteIntoDirectory extends Object
Any checked-exceptions thrown during writing stacks are converted into run-time exceptions, to make it easy to temporarily use this class in a test for debugging with minimal alteration of functions.
Constructor and Description |
---|
WriteIntoDirectory(Path directory)
Creates to print directory to the console.
|
WriteIntoDirectory(Path directory,
boolean printDirectoryToConsole) |
Modifier and Type | Method and Description |
---|---|
Path |
getDirectory()
The directory in which stacks are written
|
void |
writeChannel(String outputName,
Channel channel) |
void |
writeList(String outputName,
List<DisplayStack> stacks,
boolean always2D)
Writes a list of display-stacks
|
void |
writeObject(String outputName,
ObjectMask object) |
void |
writeObjects(String outputName,
ObjectCollection objects)
Writes the outline of objects on a blank RGB image, inferring dimensions of the image to
center the object
|
void |
writeObjects(String outputName,
ObjectCollection objects,
Stack background)
Writes the outline of objects on a background.
|
void |
writeStack(String outputName,
DisplayStack stack) |
void |
writeVoxels(String outputName,
Voxels<UnsignedByteBuffer> voxels) |
public WriteIntoDirectory(Path directory)
public WriteIntoDirectory(Path directory, boolean printDirectoryToConsole)
public void writeStack(String outputName, DisplayStack stack)
public void writeObject(String outputName, ObjectMask object) throws SetOperationFailedException
SetOperationFailedException
public void writeObjects(String outputName, ObjectCollection objects)
outputName
- output-nameobjects
- the objects to draw an outline forpublic void writeObjects(String outputName, ObjectCollection objects, Stack background)
outputName
- output-nameobjects
- the objects to draw an outline forbackground
- the backgroundpublic void writeVoxels(String outputName, Voxels<UnsignedByteBuffer> voxels)
public void writeList(String outputName, List<DisplayStack> stacks, boolean always2D) throws OutputWriteFailedException
outputName
- the output-namestacks
- the list of display-stacksalways2D
- if true, the stacks are guaranteed to always to have only one z-slice (which
can influence the output format).OutputWriteFailedException
public Path getDirectory()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.