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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ImageFileFormat
    fileFormat(StackWriteOptions writeOptions)
     
    StackWriter
     
    void
    setWriter(StackWriter writer)
     
    void
    writeStack(Stack stack, Path filePath, StackWriteOptions options)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WriteResolutionXml

      public WriteResolutionXml()
  • Method Details

    • fileFormat

      public ImageFileFormat fileFormat(StackWriteOptions writeOptions) throws ImageIOException
      Specified by:
      fileFormat in class StackWriter
      Throws:
      ImageIOException
    • writeStack

      public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException
      Specified by:
      writeStack in class StackWriter
      Throws:
      ImageIOException
    • getWriter

      public StackWriter getWriter()
    • setWriter

      public void setWriter(StackWriter writer)