Class WriteResolutionXml
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 TypeMethodDescriptionfileFormat
(StackWriteOptions writeOptions) The file format that will be written by the generator.void
setWriter
(StackWriter writer) void
writeStack
(Stack stack, Path filePath, StackWriteOptions options) Writes a stack to the filesystem at a particular path.Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtension
Methods 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
Description copied from class:StackWriter
The file format that will be written by the generator.- Specified by:
fileFormat
in classStackWriter
- Parameters:
writeOptions
- options which may influence how a raster is written.- Returns:
- the image file-format.
- Throws:
ImageIOException
- if unable to successfully determine the file-format to use to write.
-
writeStack
public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException Description copied from class:StackWriter
Writes a stack to the filesystem at a particular path.- Specified by:
writeStack
in classStackWriter
- Parameters:
stack
- the stack to write.filePath
- the path to write the file to.options
- options which may influence how a raster is written.- Throws:
ImageIOException
- if anything goes wrong while writing.
-
getWriter
-
setWriter
-