Class WriteResolutionXml

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.WriteResolutionXml

public class WriteResolutionXml
extends org.anchoranalysis.image.io.bean.stack.writer.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
    WriteResolutionXml()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.core.format.ImageFileFormat fileFormat​(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)  
    org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriter()  
    void setWriter​(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writer)  
    void writeStack​(org.anchoranalysis.image.core.stack.Stack stack, Path filePath, org.anchoranalysis.image.io.stack.output.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

  • Method Details

    • fileFormat

      public org.anchoranalysis.core.format.ImageFileFormat fileFormat​(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      fileFormat in class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • writeStack

      public void writeStack​(org.anchoranalysis.image.core.stack.Stack stack, Path filePath, org.anchoranalysis.image.io.stack.output.StackWriteOptions options) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      writeStack in class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • getWriter

      public org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriter()
    • setWriter

      public void setWriter​(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writer)