Class BranchStack
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.image.io.bean.stack.writer.StackWriter>
org.anchoranalysis.image.io.bean.stack.writer.StackWriter
org.anchoranalysis.plugin.io.bean.stack.writer.StackWriterDelegateBase
org.anchoranalysis.plugin.io.bean.stack.writer.BranchStack
public class BranchStack extends StackWriterDelegateBase
Uses different raster-writers depending on whether it is always 2D (not a z-stack) or possibly
3D.
If any optional condition does not have a writer, then writer is used in this case.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description BranchStack() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.image.io.bean.stack.writer.StackWritergetWriterAlways2D()Writer to use if it is guaranteed that the image will always be 2D.org.anchoranalysis.image.io.bean.stack.writer.StackWritergetWriterElse()Otherwise the writer to use.protected org.anchoranalysis.image.io.bean.stack.writer.StackWriterselectDelegate(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)Selects aStackWriterto use as a delegate.voidsetWriterAlways2D(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerAlways2D)Writer to use if it is guaranteed that the image will always be 2D.voidsetWriterElse(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerElse)Otherwise the writer to use.Methods inherited from class org.anchoranalysis.plugin.io.bean.stack.writer.StackWriterDelegateBase
fileFormat, writeStackMethods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtension
-
Constructor Details
-
BranchStack
public BranchStack()
-
-
Method Details
-
selectDelegate
protected org.anchoranalysis.image.io.bean.stack.writer.StackWriter selectDelegate(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)Description copied from class:StackWriterDelegateBaseSelects aStackWriterto use as a delegate.- Specified by:
selectDelegatein classStackWriterDelegateBase- Parameters:
writeOptions- options that specify what kind of rasters will be written.- Returns:
- the selected
StackWriter
-
getWriterAlways2D
public org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriterAlways2D()Writer to use if it is guaranteed that the image will always be 2D. -
setWriterAlways2D
public void setWriterAlways2D(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerAlways2D)Writer to use if it is guaranteed that the image will always be 2D. -
getWriterElse
public org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriterElse()Otherwise the writer to use. -
setWriterElse
public void setWriterElse(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerElse)Otherwise the writer to use.
-