Class WriteResolutionXml
Object
AnchorBean<StackWriter>
StackWriter
WriteResolutionXml
public class WriteResolutionXml
extends StackWriter
When writing a stack, an additional file is written to indicate the physical voxel sizes, if this
information is known.
The path of this file is the raster-path with .xml appended, e.g.
rasterFilename.tif.xml.
It contains physical extents of a single voxel (the resolution).
This file will only be present if the physical voxel sizes are known, otherwise no file is written.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImageFileFormatfileFormat(StackWriteOptions writeOptions) StackWritervoidsetWriter(StackWriter writer) voidwriteStack(Stack stack, Path filePath, StackWriteOptions options) Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtensionMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
WriteResolutionXml
public WriteResolutionXml()
-
-
Method Details
-
fileFormat
public ImageFileFormat fileFormat(StackWriteOptions writeOptions) throws ImageIOException - Specified by:
fileFormatin classStackWriter- Throws:
ImageIOException
-
writeStack
public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException - Specified by:
writeStackin classStackWriter- Throws:
ImageIOException
-
getWriter
public StackWriter getWriter() -
setWriter
public void setWriter(StackWriter writer)
-