Class PrecompressedTileReaderWriter

java.lang.Object
PrecompressedTileReaderWriter

public class PrecompressedTileReaderWriter extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a new PrecompressedTileReaderWriter to read the specified input file and write the given output file.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    To read an image file and write out a tiled image file on the command line: $ java PrecompressedTileReaderWriter input-file.svs output-file.dcm
    void
    Read tiles from input file and write tiles to output file.

    Methods inherited from class java.lang.Object

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

    • PrecompressedTileReaderWriter

      public PrecompressedTileReaderWriter(String inputFile, String outputFile)
      Construct a new PrecompressedTileReaderWriter to read the specified input file and write the given output file. Tile sizes are calculated automatically.
      Parameters:
      inputFile - the file to be read
      outputFile - the file to be written
  • Method Details

    • readWriteTiles

      public void readWriteTiles() throws loci.formats.FormatException, IOException
      Read tiles from input file and write tiles to output file.
      Throws:
      IOException - thrown if unable to setup input or output stream for reader or writer
      loci.formats.FormatException - thrown by FormatWriter if attempting to set invalid series
    • main

      public static void main(String[] args) throws Exception
      To read an image file and write out a tiled image file on the command line: $ java PrecompressedTileReaderWriter input-file.svs output-file.dcm
      Parameters:
      args - input file, output file
      Throws:
      Exception